[tracker] libtracker-miner: Renamed internal define TRACKER_MAX_TIMEOUT_INTERVAL
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-miner: Renamed internal define TRACKER_MAX_TIMEOUT_INTERVAL
- Date: Mon, 15 Dec 2014 12:33:31 +0000 (UTC)
commit c7725e027aa5aaa8845fc767c5c4c8fa181bc7a0
Author: Martyn Russell <martyn lanedo com>
Date: Mon Dec 15 12:07:56 2014 +0000
libtracker-miner: Renamed internal define TRACKER_MAX_TIMEOUT_INTERVAL
Use _CRAWLER_ in there so we know where it comes from.
src/libtracker-miner/tracker-crawler.c | 2 +-
src/libtracker-miner/tracker-crawler.h | 2 +-
src/libtracker-miner/tracker-miner-fs.c | 8 ++------
3 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-crawler.c b/src/libtracker-miner/tracker-crawler.c
index 36a1193..e5f2082 100644
--- a/src/libtracker-miner/tracker-crawler.c
+++ b/src/libtracker-miner/tracker-crawler.c
@@ -1200,7 +1200,7 @@ tracker_crawler_set_throttle (TrackerCrawler *crawler,
if (crawler->priv->idle_id != 0) {
guint interval, idle_id;
- interval = TRACKER_MAX_TIMEOUT_INTERVAL * crawler->priv->throttle;
+ interval = TRACKER_CRAWLER_MAX_TIMEOUT_INTERVAL * crawler->priv->throttle;
g_source_remove (crawler->priv->idle_id);
diff --git a/src/libtracker-miner/tracker-crawler.h b/src/libtracker-miner/tracker-crawler.h
index 3f4a7b8..0991fa1 100644
--- a/src/libtracker-miner/tracker-crawler.h
+++ b/src/libtracker-miner/tracker-crawler.h
@@ -39,7 +39,7 @@ G_BEGIN_DECLS
#define TRACKER_CRAWLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRACKER_TYPE_CRAWLER,
TrackerCrawlerClass))
/* Max timeouts time (in msec) */
-#define TRACKER_MAX_TIMEOUT_INTERVAL 1000
+#define TRACKER_CRAWLER_MAX_TIMEOUT_INTERVAL 1000
typedef struct TrackerCrawler TrackerCrawler;
typedef struct TrackerCrawlerClass TrackerCrawlerClass;
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index f389609..ff2acea 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -19,11 +19,7 @@
#include "config.h"
-#include <libtracker-common/tracker-date-time.h>
-#include <libtracker-common/tracker-dbus.h>
-#include <libtracker-common/tracker-file-utils.h>
-#include <libtracker-common/tracker-log.h>
-#include <libtracker-common/tracker-utils.h>
+#include <libtracker-common/tracker-common.h>
#include "tracker-crawler.h"
#include "tracker-miner-fs.h"
@@ -2612,7 +2608,7 @@ _tracker_idle_add (TrackerMinerFS *fs,
{
guint interval;
- interval = TRACKER_MAX_TIMEOUT_INTERVAL * fs->priv->throttle;
+ interval = TRACKER_CRAWLER_MAX_TIMEOUT_INTERVAL * fs->priv->throttle;
if (interval == 0) {
return g_idle_add_full (TRACKER_TASK_PRIORITY, func, user_data, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]