[tracker/dbus-fd-experiment-gio: 20/41] Steroids client: ifdef functions requiring FD passing



commit 2a61a19579fb3edad25e0ae10a75a9e888a4ee75
Author: Adrien Bustany <abustany gnome org>
Date:   Thu Jun 3 13:47:30 2010 -0400

    Steroids client: ifdef functions requiring FD passing

 src/libtracker-client/tracker.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-client/tracker.c b/src/libtracker-client/tracker.c
index e6cd37a..0f19db2 100644
--- a/src/libtracker-client/tracker.c
+++ b/src/libtracker-client/tracker.c
@@ -1791,6 +1791,7 @@ tracker_resources_sparql_update_fast (TrackerClient  *client,
                                       const gchar    *query,
                                       GError        **error)
 {
+#ifdef HAVE_DBUS_FD_PASSING
 	DBusMessage *reply;
 
 	reply = sparql_update_fast (client, query, TRACKER_UPDATE, error);
@@ -1800,6 +1801,9 @@ tracker_resources_sparql_update_fast (TrackerClient  *client,
 	}
 
 	dbus_message_unref (reply);
+#else
+	tracker_resources_sparql_update (client, query, error);
+#endif
 }
 
 GPtrArray *
@@ -1830,6 +1834,7 @@ tracker_resources_sparql_update_blank_fast (TrackerClient  *client,
                                             const gchar    *query,
                                             GError        **error)
 {
+#ifdef HAVE_DBUS_FD_PASSING
 	DBusMessage *reply;
 	DBusMessageIter iter, subiter, subsubiter;
 	GPtrArray *result;
@@ -1871,6 +1876,9 @@ tracker_resources_sparql_update_blank_fast (TrackerClient  *client,
 	dbus_message_unref (reply);
 
 	return result;
+#else
+	return tracker_resources_sparql_update_blank (client, query, error);
+#endif
 }
 
 /**
@@ -1908,6 +1916,7 @@ tracker_resources_batch_sparql_update_fast (TrackerClient  *client,
                                             const gchar    *query,
                                             GError        **error)
 {
+#ifdef HAVE_DBUS_FD_PASSING
 	DBusMessage *reply;
 
 	reply = sparql_update_fast (client, query, TRACKER_UPDATE_BATCH, error);
@@ -1917,6 +1926,9 @@ tracker_resources_batch_sparql_update_fast (TrackerClient  *client,
 	}
 
 	dbus_message_unref (reply);
+#else
+	tracker_resources_batch_sparql_update (client, query, error);
+#endif
 }
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]