[tracker/libtracker-miner] TrackerMiner: Add tracker_miner_get_client().
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/libtracker-miner] TrackerMiner: Add tracker_miner_get_client().
- Date: Tue, 18 Aug 2009 15:51:16 +0000 (UTC)
commit ce5cfc80083d32b33e625be2a007b73eb34da225
Author: Carlos Garnacho <carlos lanedo com>
Date: Tue Aug 18 17:49:13 2009 +0200
TrackerMiner: Add tracker_miner_get_client().
This function returns the TrackerClient used to send metadata to tracker-store.
src/libtracker-miner/tracker-miner.c | 10 ++++++++--
src/libtracker-miner/tracker-miner.h | 2 ++
2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner.c b/src/libtracker-miner/tracker-miner.c
index abbb9d3..99d66a5 100644
--- a/src/libtracker-miner/tracker-miner.c
+++ b/src/libtracker-miner/tracker-miner.c
@@ -20,8 +20,6 @@
#include "config.h"
-#include <libtracker/tracker.h>
-
#include "tracker-marshal.h"
#include "tracker-miner.h"
#include "tracker-miner-dbus.h"
@@ -498,6 +496,14 @@ tracker_miner_resume (TrackerMiner *miner,
g_return_if_fail (TRACKER_IS_MINER (miner));
}
+TrackerClient *
+tracker_miner_get_client (TrackerMiner *miner)
+{
+ g_return_val_if_fail (TRACKER_IS_MINER (miner), NULL);
+
+ return miner->private->client;
+}
+
gboolean
tracker_miner_execute_sparql (TrackerMiner *miner,
const gchar *sparql,
diff --git a/src/libtracker-miner/tracker-miner.h b/src/libtracker-miner/tracker-miner.h
index 3e0b6eb..66ac75f 100644
--- a/src/libtracker-miner/tracker-miner.h
+++ b/src/libtracker-miner/tracker-miner.h
@@ -22,6 +22,7 @@
#define __TRACKER_MINER_H__
#include <glib-object.h>
+#include <libtracker/tracker.h>
G_BEGIN_DECLS
@@ -70,6 +71,7 @@ G_CONST_RETURN gchar *tracker_miner_get_name (TrackerMiner *miner)
gchar *tracker_miner_get_status (TrackerMiner *miner);
gdouble tracker_miner_get_progress (TrackerMiner *miner);
+TrackerClient *tracker_miner_get_client (TrackerMiner *miner);
gboolean tracker_miner_execute_sparql (TrackerMiner *miner,
const gchar *sparql,
GError **error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]