[tracker/libtracker-miner] TrackerMiner: Add tracker_miner_is_started().



commit f72d70ea957ea236981571383976cdc02c39dcca
Author: Carlos Garnacho <carlos lanedo com>
Date:   Mon Aug 31 14:37:36 2009 +0200

    TrackerMiner: Add tracker_miner_is_started().

 src/libtracker-miner/tracker-miner.c |    8 ++++++++
 src/libtracker-miner/tracker-miner.h |    2 ++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner.c b/src/libtracker-miner/tracker-miner.c
index 3baa976..a9c2f1c 100644
--- a/src/libtracker-miner/tracker-miner.c
+++ b/src/libtracker-miner/tracker-miner.c
@@ -516,6 +516,14 @@ tracker_miner_stop (TrackerMiner *miner)
 	g_signal_emit (miner, signals[STOPPED], 0);
 }
 
+gboolean
+tracker_miner_is_started (TrackerMiner  *miner)
+{
+	g_return_val_if_fail (TRACKER_IS_MINER (miner), TRUE);
+
+	return miner->private->started;
+}
+
 TrackerClient *
 tracker_miner_get_client (TrackerMiner *miner)
 {
diff --git a/src/libtracker-miner/tracker-miner.h b/src/libtracker-miner/tracker-miner.h
index 98b1ac1..2f181eb 100644
--- a/src/libtracker-miner/tracker-miner.h
+++ b/src/libtracker-miner/tracker-miner.h
@@ -75,6 +75,8 @@ GQuark	       tracker_miner_error_quark    (void);
 void           tracker_miner_start          (TrackerMiner  *miner);
 void           tracker_miner_stop           (TrackerMiner  *miner);
 
+gboolean       tracker_miner_is_started     (TrackerMiner  *miner);
+
 TrackerClient *tracker_miner_get_client     (TrackerMiner  *miner);
 gboolean       tracker_miner_execute_sparql (TrackerMiner  *miner,
 					     const gchar   *sparql,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]