[tracker/gdbus-porting-rebased: 59/65] miner-rss: Cleaning up and indent fixes of RSS miner
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/gdbus-porting-rebased: 59/65] miner-rss: Cleaning up and indent fixes of RSS miner
- Date: Wed, 12 Jan 2011 11:20:44 +0000 (UTC)
commit 7d28091c9e6c83f63cf1c4c9d7b244baeab5f006
Author: Philip Van Hoof <philip codeminded be>
Date: Mon Jan 10 11:44:29 2011 +0100
miner-rss: Cleaning up and indent fixes of RSS miner
configure.ac | 2 -
src/miners/rss/tracker-miner-rss.c | 55 +++++++++++++++++-------------------
2 files changed, 26 insertions(+), 31 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c47f1eb..77cd39a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -367,8 +367,6 @@ fi
# Check requirements for tracker-miner-rss
TRACKER_MINER_RSS_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
- dbus-1 >= $DBUS_REQUIRED
- dbus-glib-1 >= $DBUS_GLIB_REQUIRED
libgrss-0 >= $LIBGRSS_REQUIRED"
PKG_CHECK_MODULES(TRACKER_MINER_RSS, [$TRACKER_MINER_RSS_REQUIRED],
diff --git a/src/miners/rss/tracker-miner-rss.c b/src/miners/rss/tracker-miner-rss.c
index 49cb4d4..0d112f6 100644
--- a/src/miners/rss/tracker-miner-rss.c
+++ b/src/miners/rss/tracker-miner-rss.c
@@ -32,9 +32,6 @@
#define TRACKER_MINER_RSS_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TRACKER_TYPE_MINER_RSS, TrackerMinerRSSPrivate))
-#define TRACKER_DBUS_INTERFACE_FEED TRACKER_DBUS_INTERFACE_RESOURCES ".Class"
-#define TRACKER_DBUS_OBJECT_FEED TRACKER_DBUS_OBJECT_RESOURCES "/Classes/mfo/FeedChannel"
-
typedef struct _TrackerMinerRSSPrivate TrackerMinerRSSPrivate;
struct _TrackerMinerRSSPrivate {
@@ -195,13 +192,13 @@ update_updated_interval (TrackerMinerRSS *miner,
tracker_sparql_builder_object_date (sparql, now);
tracker_sparql_builder_insert_close (sparql);
- /* FIXME: Should be async */
- tracker_sparql_connection_update_async (tracker_miner_get_connection (TRACKER_MINER (miner)),
- tracker_sparql_builder_get_result (sparql),
- G_PRIORITY_DEFAULT,
- NULL,
- verify_channel_update,
- NULL);
+ /* FIXME: Should be async */
+ tracker_sparql_connection_update_async (tracker_miner_get_connection (TRACKER_MINER (miner)),
+ tracker_sparql_builder_get_result (sparql),
+ G_PRIORITY_DEFAULT,
+ NULL,
+ verify_channel_update,
+ NULL);
g_object_unref (sparql);
}
@@ -272,8 +269,8 @@ item_verify_reply_cb (GObject *source_object,
miner = TRACKER_MINER_RSS (source_object);
error = NULL;
cursor = tracker_sparql_connection_query_finish (TRACKER_SPARQL_CONNECTION (source_object),
- res,
- &error);
+ res,
+ &error);
if (error != NULL) {
g_message ("Could not verify feed existance, %s", error->message);
@@ -382,11 +379,11 @@ item_verify_reply_cb (GObject *source_object,
tracker_sparql_builder_insert_close (sparql);
tracker_sparql_connection_update_async (tracker_miner_get_connection (TRACKER_MINER (miner)),
- tracker_sparql_builder_get_result (sparql),
- G_PRIORITY_DEFAULT,
- NULL,
- verify_item_insertion,
- NULL);
+ tracker_sparql_builder_get_result (sparql),
+ G_PRIORITY_DEFAULT,
+ NULL,
+ verify_item_insertion,
+ NULL);
g_object_unref (cursor);
g_object_unref (sparql);
@@ -413,10 +410,10 @@ check_if_save (TrackerMinerRSS *miner,
communication_channel);
tracker_sparql_connection_query_async (tracker_miner_get_connection (TRACKER_MINER (miner)),
- query,
- NULL,
- item_verify_reply_cb,
- item);
+ query,
+ NULL,
+ item_verify_reply_cb,
+ item);
g_free (query);
}
@@ -537,16 +534,16 @@ retrieve_and_schedule_feeds (TrackerMinerRSS *miner)
g_message ("Retrieving and scheduling feeds...");
sparql = "SELECT ?chanUrl ?interval ?chanUrn WHERE "
- "{ ?chanUrn a mfo:FeedChannel . "
- "?chanUrn mfo:feedSettings ?settings . "
- "?chanUrn nie:url ?chanUrl . "
- "?settings mfo:updateInterval ?interval }";
+ "{ ?chanUrn a mfo:FeedChannel . "
+ "?chanUrn mfo:feedSettings ?settings . "
+ "?chanUrn nie:url ?chanUrl . "
+ "?settings mfo:updateInterval ?interval }";
tracker_sparql_connection_query_async (tracker_miner_get_connection (TRACKER_MINER (miner)),
- sparql,
- NULL,
- feeds_retrieve_cb,
- miner);
+ sparql,
+ NULL,
+ feeds_retrieve_cb,
+ miner);
}
static const gchar *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]