[tracker] libtracker-miner: Add TrackerMonitor function to check the limit
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-miner: Add TrackerMonitor function to check the limit
- Date: Tue, 11 Jul 2017 22:27:50 +0000 (UTC)
commit fefc9147ed1ce5625c4c4320b0da80ac10f4a8ff
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Jul 11 01:12:29 2017 +0200
libtracker-miner: Add TrackerMonitor function to check the limit
src/libtracker-miner/tracker-monitor.c | 8 ++++++++
src/libtracker-miner/tracker-monitor.h | 1 +
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-monitor.c b/src/libtracker-miner/tracker-monitor.c
index 5a44fe1..0b426cb 100644
--- a/src/libtracker-miner/tracker-monitor.c
+++ b/src/libtracker-miner/tracker-monitor.c
@@ -1738,3 +1738,11 @@ tracker_monitor_get_ignored (TrackerMonitor *monitor)
return monitor->priv->monitors_ignored;
}
+
+guint
+tracker_monitor_get_limit (TrackerMonitor *monitor)
+{
+ g_return_val_if_fail (TRACKER_IS_MONITOR (monitor), 0);
+
+ return monitor->priv->monitor_limit;
+}
diff --git a/src/libtracker-miner/tracker-monitor.h b/src/libtracker-miner/tracker-monitor.h
index 5673ba0..a4a6106 100644
--- a/src/libtracker-miner/tracker-monitor.h
+++ b/src/libtracker-miner/tracker-monitor.h
@@ -77,6 +77,7 @@ gboolean tracker_monitor_is_watched_by_string (TrackerMonitor *monitor,
const gchar *path);
guint tracker_monitor_get_count (TrackerMonitor *monitor);
guint tracker_monitor_get_ignored (TrackerMonitor *monitor);
+guint tracker_monitor_get_limit (TrackerMonitor *monitor);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]