[tracker/libtracker-bus: 42/44] libtracker-bus: Avoid warnings when building without FD passing
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/libtracker-bus: 42/44] libtracker-bus: Avoid warnings when building without FD passing
- Date: Fri, 13 Aug 2010 14:08:09 +0000 (UTC)
commit c280b9412b8a73de1d2bba5a6ee74e2121ee4ff6
Author: Martyn Russell <martyn lanedo com>
Date: Fri Aug 13 14:07:37 2010 +0100
libtracker-bus: Avoid warnings when building without FD passing
src/libtracker-bus/tracker-bus-array-update.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/libtracker-bus/tracker-bus-array-update.c b/src/libtracker-bus/tracker-bus-array-update.c
index c74adec..b22b5cc 100644
--- a/src/libtracker-bus/tracker-bus-array-update.c
+++ b/src/libtracker-bus/tracker-bus-array-update.c
@@ -35,6 +35,8 @@
#include "tracker-bus.h"
#include "tracker-bus-shared.h"
+#ifdef HAVE_DBUS_FD_PASSING
+
typedef struct {
DBusConnection *connection;
GCancellable *cancellable;
@@ -44,7 +46,6 @@ typedef struct {
gulong cancelid;
} AsyncData;
-
static void
async_data_free (gpointer data)
{
@@ -84,8 +85,6 @@ async_data_new (DBusConnection *connection,
return fad;
}
-
-
static void
sparql_update_callback (DBusPendingCall *call,
void *user_data)
@@ -122,6 +121,8 @@ sparql_update_callback (DBusPendingCall *call,
dbus_pending_call_unref (call);
}
+#endif /* HAVE_DBUS_FD_PASSING */
+
void
tracker_bus_array_sparql_update_blank_async (DBusGConnection *connection,
const gchar *query,
@@ -165,8 +166,6 @@ tracker_bus_array_sparql_update_blank_async (DBusGConnection *connection,
fad->dbus_call = call;
dbus_pending_call_set_notify (call, sparql_update_callback, fad, NULL);
-
-
#else /* HAVE_DBUS_FD_PASSING */
g_assert_not_reached ();
#endif /* HAVE_DBUS_FD_PASSING */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]