[tracker/sam/functional-test-fixes: 6/12] temp mistake
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/sam/functional-test-fixes: 6/12] temp mistake
- Date: Sun, 7 Dec 2014 20:54:50 +0000 (UTC)
commit 1ceacdf0f3ec867163d2c57931d4348de52473b1
Author: Sam Thursfield <sam afuera me uk>
Date: Sun Jul 20 16:44:31 2014 +0100
temp mistake
examples/libtracker-miner/tracker-main.c | 5 +++++
src/libtracker-common/tracker-dbus.c | 5 +++++
src/libtracker-miner/tracker-crawler.c | 6 ++++++
src/libtracker-miner/tracker-media-art.c | 4 ++++
src/libtracker-miner/tracker-miner-fs.c | 4 ++++
src/libtracker-miner/tracker-monitor.c | 4 ++++
src/libtracker-miner/tracker-sparql-buffer.c | 4 ++++
src/miners/fs/tracker-main.c | 4 ++++
src/miners/fs/tracker-miner-files.c | 4 ++++
src/miners/fs/tracker-storage.c | 4 ++++
src/miners/fs/tracker-writeback-dispatcher.c | 4 ++++
src/miners/rss/tracker-miner-rss.c | 4 ++++
src/plugins/evolution/tracker-evolution-plugin.c | 4 ++++
.../libtracker-miner/tracker-file-notifier-test.c | 4 ++++
tests/libtracker-miner/tracker-monitor-test.c | 4 ++++
utils/mtp/mtp-dummy.c | 4 ++++
16 files changed, 68 insertions(+), 0 deletions(-)
---
diff --git a/examples/libtracker-miner/tracker-main.c b/examples/libtracker-miner/tracker-main.c
index a6699c7..51e9fc8 100644
--- a/examples/libtracker-miner/tracker-main.c
+++ b/examples/libtracker-miner/tracker-main.c
@@ -28,6 +28,11 @@
#include "tracker-miner-test.h"
+#define g_source_set_name_by_id(id, name) do { \
+ g_warning("Source %i has name %s", id, name); \
+ g_source_set_name_by_id (id, name);
+} while(0);
+
static void
miner_finished_cb (TrackerMiner *miner,
gdouble seconds_elapsed,
diff --git a/src/libtracker-common/tracker-dbus.c b/src/libtracker-common/tracker-dbus.c
index b9080b1..09f06f3 100644
--- a/src/libtracker-common/tracker-dbus.c
+++ b/src/libtracker-common/tracker-dbus.c
@@ -43,6 +43,11 @@
*/
#define CLIENT_CLEAN_UP_TIME 300
+#define g_source_set_name_by_id(id, name) do { \
+ g_warning("Source %i has name %s", id, name); \
+ g_source_set_name_by_id (id, name); \
+} while(0);
+
typedef struct {
gchar *sender;
gchar *binary;
diff --git a/src/libtracker-miner/tracker-crawler.c b/src/libtracker-miner/tracker-crawler.c
index 7122613..7bb0378 100644
--- a/src/libtracker-miner/tracker-crawler.c
+++ b/src/libtracker-miner/tracker-crawler.c
@@ -53,6 +53,12 @@ typedef struct {
GSList *files;
} DataProviderData;
+
+#define g_source_set_name_by_id(id, name) do { \
+ g_warning("Source %i has name %s", id, name); \
+ g_source_set_name_by_id (id, name);
+} while(0);
+
struct DirectoryChildData {
GFile *child;
gboolean is_dir;
diff --git a/src/libtracker-miner/tracker-media-art.c b/src/libtracker-miner/tracker-media-art.c
index c61451b..762e513 100644
--- a/src/libtracker-miner/tracker-media-art.c
+++ b/src/libtracker-miner/tracker-media-art.c
@@ -32,6 +32,10 @@
#include "tracker-media-art.h"
+#define g_source_set_name_by_id(id, name) do { \
+ g_warning("Source %i has name %s", id, name); \
+ g_source_set_name_by_id (id, name);
+} while(0);
/**
* SECTION:tracker-media-art
* @title: Media art management
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 7e6d3e2..9d367e3 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -36,6 +36,10 @@
#include "tracker-sparql-buffer.h"
#include "tracker-file-notifier.h"
+#define g_source_set_name_by_id(id, name) do { \
+ g_warning("Source %i has name %s", id, name); \
+ g_source_set_name_by_id (id, name);
+} while(0);
/* If defined will print the tree from GNode while running */
#ifdef CRAWLED_TREE_ENABLE_TRACE
#warning Tree debugging traces enabled
diff --git a/src/libtracker-miner/tracker-monitor.c b/src/libtracker-miner/tracker-monitor.c
index f1a0156..1ba6c61 100644
--- a/src/libtracker-miner/tracker-monitor.c
+++ b/src/libtracker-miner/tracker-monitor.c
@@ -32,6 +32,10 @@
#include "tracker-monitor.h"
+#define g_source_set_name_by_id(id, name) do { \
+ g_warning("Source %i has name %s", id, name); \
+ g_source_set_name_by_id (id, name);
+} while(0);
#define TRACKER_MONITOR_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TRACKER_TYPE_MONITOR,
TrackerMonitorPrivate))
/* If this is enabled, we are assuming that GIO is fixed so that after a CREATED
diff --git a/src/libtracker-miner/tracker-sparql-buffer.c b/src/libtracker-miner/tracker-sparql-buffer.c
index ba246e6..cf369d3 100644
--- a/src/libtracker-miner/tracker-sparql-buffer.c
+++ b/src/libtracker-miner/tracker-sparql-buffer.c
@@ -25,6 +25,10 @@
#include "tracker-sparql-buffer.h"
+#define g_source_set_name_by_id(id, name) do { \
+ g_warning("Source %i has name %s", id, name); \
+ g_source_set_name_by_id (id, name);
+} while(0);
/* Maximum time (seconds) before forcing a sparql buffer flush */
#define MAX_SPARQL_BUFFER_TIME 15
diff --git a/src/miners/fs/tracker-main.c b/src/miners/fs/tracker-main.c
index 07b205f..a07b784 100644
--- a/src/miners/fs/tracker-main.c
+++ b/src/miners/fs/tracker-main.c
@@ -42,6 +42,10 @@
#include "tracker-miner-files-index.h"
#include "tracker-writeback.h"
+#define g_source_set_name_by_id(id, name) do { \
+ g_warning("Source %i has name %s", id, name); \
+ g_source_set_name_by_id (id, name);
+} while(0);
#define ABOUT \
"Tracker " PACKAGE_VERSION "\n"
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index b8e66ec..744a024 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -45,6 +45,10 @@
#include "tracker-config.h"
#include "tracker-storage.h"
+#define g_source_set_name_by_id(id, name) do { \
+ g_warning("Source %i has name %s", id, name); \
+ g_source_set_name_by_id (id, name);
+} while(0);
#define DISK_SPACE_CHECK_FREQUENCY 10
#define SECONDS_PER_DAY 86400
diff --git a/src/miners/fs/tracker-storage.c b/src/miners/fs/tracker-storage.c
index 7e6cd96..db3a195 100644
--- a/src/miners/fs/tracker-storage.c
+++ b/src/miners/fs/tracker-storage.c
@@ -28,6 +28,10 @@
#include "tracker-storage.h"
+#define g_source_set_name_by_id(id, name) do { \
+ g_warning("Source %i has name %s", id, name); \
+ g_source_set_name_by_id (id, name);
+} while(0);
/**
* SECTION:tracker-storage
* @short_description: Removable storage and mount point convenience API
diff --git a/src/miners/fs/tracker-writeback-dispatcher.c b/src/miners/fs/tracker-writeback-dispatcher.c
index 113b38f..f7f3b4d 100644
--- a/src/miners/fs/tracker-writeback-dispatcher.c
+++ b/src/miners/fs/tracker-writeback-dispatcher.c
@@ -25,6 +25,10 @@
#include "tracker-writeback-dispatcher.h"
+#define g_source_set_name_by_id(id, name) do { \
+ g_warning("Source %i has name %s", id, name); \
+ g_source_set_name_by_id (id, name);
+} while(0);
#define TRACKER_WRITEBACK_SERVICE "org.freedesktop.Tracker1.Writeback"
#define TRACKER_WRITEBACK_PATH "/org/freedesktop/Tracker1/Writeback"
#define TRACKER_WRITEBACK_INTERFACE "org.freedesktop.Tracker1.Writeback"
diff --git a/src/miners/rss/tracker-miner-rss.c b/src/miners/rss/tracker-miner-rss.c
index ed7ea38..d563d40 100644
--- a/src/miners/rss/tracker-miner-rss.c
+++ b/src/miners/rss/tracker-miner-rss.c
@@ -31,6 +31,10 @@
#include "tracker-miner-rss.h"
+#define g_source_set_name_by_id(id, name) do { \
+ g_warning("Source %i has name %s", id, name); \
+ g_source_set_name_by_id (id, name);
+} while(0);
#define TRACKER_MINER_RSS_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TRACKER_TYPE_MINER_RSS,
TrackerMinerRSSPrivate))
typedef struct _TrackerMinerRSSPrivate TrackerMinerRSSPrivate;
diff --git a/src/plugins/evolution/tracker-evolution-plugin.c
b/src/plugins/evolution/tracker-evolution-plugin.c
index 94c6cc8..9e47f11 100644
--- a/src/plugins/evolution/tracker-evolution-plugin.c
+++ b/src/plugins/evolution/tracker-evolution-plugin.c
@@ -41,6 +41,10 @@
#include <sqlite3.h>
+#define g_source_set_name_by_id(id, name) do { \
+ g_warning("Source %i has name %s", id, name); \
+ g_source_set_name_by_id (id, name);
+} while(0);
/* This is why you should seal your headers with one include for
* client sanity. This is the horendous shit we've had to put up with
* for years from the Evo shell API :(
diff --git a/tests/libtracker-miner/tracker-file-notifier-test.c
b/tests/libtracker-miner/tracker-file-notifier-test.c
index 20825f5..854ab02 100644
--- a/tests/libtracker-miner/tracker-file-notifier-test.c
+++ b/tests/libtracker-miner/tracker-file-notifier-test.c
@@ -32,6 +32,10 @@
#include <libtracker-miner/tracker-miner-enums.h>
#include <libtracker-miner/tracker-file-notifier.h>
+#define g_source_set_name_by_id(id, name) do { \
+ g_warning("Source %i has name %s", id, name); \
+ g_source_set_name_by_id (id, name);
+} while(0);
typedef struct {
gint op;
gchar *path;
diff --git a/tests/libtracker-miner/tracker-monitor-test.c b/tests/libtracker-miner/tracker-monitor-test.c
index a431099..3877e65 100644
--- a/tests/libtracker-miner/tracker-monitor-test.c
+++ b/tests/libtracker-miner/tracker-monitor-test.c
@@ -26,6 +26,10 @@
/* Special case, the monitor header is not normally exported */
#include <libtracker-miner/tracker-monitor.h>
+#define g_source_set_name_by_id(id, name) do { \
+ g_warning("Source %i has name %s", id, name); \
+ g_source_set_name_by_id (id, name);
+} while(0);
/* -------------- COMMON FOR ALL FILE EVENT TESTS ----------------- */
#define TEST_TIMEOUT 5 /* seconds */
diff --git a/utils/mtp/mtp-dummy.c b/utils/mtp/mtp-dummy.c
index 8aaa457..9195ec1 100644
--- a/utils/mtp/mtp-dummy.c
+++ b/utils/mtp/mtp-dummy.c
@@ -25,6 +25,10 @@
#include <libtracker-sparql/tracker-sparql.h>
+#define g_source_set_name_by_id(id, name) do { \
+ g_warning("Source %i has name %s", id, name); \
+ g_source_set_name_by_id (id, name);
+} while(0);
#define COPY_TIMEOUT_MS 100
static gint copy_rate = 1024; /* 1MByte/second */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]