[tracker/direct-access] libtracker-bus: Invert ifdef for array backend
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/direct-access] libtracker-bus: Invert ifdef for array backend
- Date: Fri, 13 Aug 2010 13:49:17 +0000 (UTC)
commit 01c402bd963bdb1ce0d5862b497192549a683531
Author: Martyn Russell <martyn lanedo com>
Date: Fri Aug 13 14:48:31 2010 +0100
libtracker-bus: Invert ifdef for array backend
Was only working for FD passing which is the wrong way round. The test
cases for updating should work now without FD passing. This was crashing
src/libtracker-bus/tracker-bus-array-update.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-bus/tracker-bus-array-update.c b/src/libtracker-bus/tracker-bus-array-update.c
index b22b5cc..2d91e6f 100644
--- a/src/libtracker-bus/tracker-bus-array-update.c
+++ b/src/libtracker-bus/tracker-bus-array-update.c
@@ -35,7 +35,7 @@
#include "tracker-bus.h"
#include "tracker-bus-shared.h"
-#ifdef HAVE_DBUS_FD_PASSING
+#ifndef HAVE_DBUS_FD_PASSING
typedef struct {
DBusConnection *connection;
@@ -130,7 +130,7 @@ tracker_bus_array_sparql_update_blank_async (DBusGConnection *connection,
GAsyncReadyCallback callback,
gpointer user_data)
{
-#ifdef HAVE_DBUS_FD_PASSING
+#ifndef HAVE_DBUS_FD_PASSING
DBusPendingCall *call;
DBusMessage *message;
AsyncData *fad;
@@ -177,7 +177,7 @@ tracker_bus_array_sparql_update_blank (DBusGConnection *connection,
const gchar *query,
GError **error)
{
-#ifdef HAVE_DBUS_FD_PASSING
+#ifndef HAVE_DBUS_FD_PASSING
DBusMessage *reply, *message;
GVariant *result;
DBusMessageIter iter;
@@ -250,7 +250,7 @@ GVariant *
tracker_bus_array_sparql_update_blank_finish (GAsyncResult *res,
GError **error)
{
-#ifdef HAVE_DBUS_FD_PASSING
+#ifndef HAVE_DBUS_FD_PASSING
g_return_val_if_fail (res != NULL, NULL);
if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (res), error)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]