[tracker/external-crawler: 27/42] libtracker-miner: Added MinerFS _get_enumerator() function
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/external-crawler: 27/42] libtracker-miner: Added MinerFS _get_enumerator() function
- Date: Wed, 6 Aug 2014 07:42:47 +0000 (UTC)
commit 2f6a77af841c0b9d284db995594162259e7f17b0
Author: Martyn Russell <martyn lanedo com>
Date: Fri Jun 6 11:55:35 2014 +0100
libtracker-miner: Added MinerFS _get_enumerator() function
.../libtracker-miner/libtracker-miner-sections.txt | 1 +
src/libtracker-miner/tracker-miner-fs.c | 19 +++++++++++++++++++
src/libtracker-miner/tracker-miner-fs.h | 1 +
3 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/libtracker-miner/libtracker-miner-sections.txt
b/docs/reference/libtracker-miner/libtracker-miner-sections.txt
index f2d7892..5862584 100644
--- a/docs/reference/libtracker-miner/libtracker-miner-sections.txt
+++ b/docs/reference/libtracker-miner/libtracker-miner-sections.txt
@@ -74,6 +74,7 @@ tracker_miner_fs_file_notify
tracker_miner_fs_force_mtime_checking
tracker_miner_fs_force_recheck
tracker_miner_fs_get_indexing_tree
+tracker_miner_fs_get_enumerator
tracker_miner_fs_get_initial_crawling
tracker_miner_fs_get_mtime_checking
tracker_miner_fs_get_parent_urn
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 9ad5941..639d519 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -3989,6 +3989,25 @@ tracker_miner_fs_get_indexing_tree (TrackerMinerFS *fs)
return fs->priv->indexing_tree;
}
+/**
+ * tracker_miner_fs_get_enumerator:
+ * @fs: a #TrackerMinerFS
+ *
+ * Returns the #TrackerEnumerator implementation, which is being used
+ * to supply #GFile and #GFileInfo content to Tracker.
+ *
+ * Returns: (transfer none): The #TrackerEnumerator supplying content
+ *
+ * Since: 1.2
+ **/
+TrackerEnumerator *
+tracker_miner_fs_get_enumerator (TrackerMinerFS *fs)
+{
+ g_return_val_if_fail (TRACKER_IS_MINER_FS (fs), NULL);
+
+ return fs->priv->enumerator;
+}
+
#ifdef EVENT_QUEUE_ENABLE_TRACE
static void
diff --git a/src/libtracker-miner/tracker-miner-fs.h b/src/libtracker-miner/tracker-miner-fs.h
index 1c4fd96..ea2228f 100644
--- a/src/libtracker-miner/tracker-miner-fs.h
+++ b/src/libtracker-miner/tracker-miner-fs.h
@@ -117,6 +117,7 @@ GQuark tracker_miner_fs_error_quark (void);
/* Properties */
TrackerIndexingTree * tracker_miner_fs_get_indexing_tree (TrackerMinerFS *fs);
+TrackerEnumerator * tracker_miner_fs_get_enumerator (TrackerMinerFS *fs);
gdouble tracker_miner_fs_get_throttle (TrackerMinerFS *fs);
gboolean tracker_miner_fs_get_mtime_checking (TrackerMinerFS *fs);
gboolean tracker_miner_fs_get_initial_crawling (TrackerMinerFS *fs);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]