summaryrefslogtreecommitdiffstats
path: root/gdbus
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-06-07 19:35:09 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-06-07 19:35:09 +0000
commit957b231578f267c158aad42662d8ebbe916aab2d (patch)
treef6dfa160f0e78c7dc33d86d431dd7ea9079faba1 /gdbus
parente26cc82994acb2b8acfe24f29825b7f5326f9673 (diff)
Don't consider mainloop integration of dbus-glib
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/mainloop.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/gdbus/mainloop.c b/gdbus/mainloop.c
index 36abbf33..ddcacedc 100644
--- a/gdbus/mainloop.c
+++ b/gdbus/mainloop.c
@@ -34,10 +34,6 @@
#define dbus_watch_get_unix_fd dbus_watch_get_fd
#endif
-#ifdef HAVE_DBUS_GLIB
-#include <dbus/dbus-glib-lowlevel.h>
-#endif
-
#include "gdbus.h"
#define DISPATCH_TIMEOUT 0
@@ -46,7 +42,6 @@
#define error(fmt...)
#define debug(fmt...)
-#ifndef HAVE_DBUS_GLIB
typedef struct {
uint32_t id;
DBusTimeout *timeout;
@@ -63,7 +58,6 @@ struct server_info {
GIOChannel *io;
DBusServer *server;
};
-#endif
struct disconnect_data {
void (*disconnect_cb)(void *);
@@ -85,7 +79,6 @@ static DBusHandlerResult disconnect_filter(DBusConnection *conn,
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}
-#ifndef HAVE_DBUS_GLIB
static gboolean message_dispatch_cb(void *data)
{
DBusConnection *connection = data;
@@ -233,15 +226,9 @@ static void dispatch_status_cb(DBusConnection *conn,
if (new_status == DBUS_DISPATCH_DATA_REMAINS)
g_timeout_add(DISPATCH_TIMEOUT, message_dispatch_cb, data);
}
-#endif
static void setup_dbus_with_main_loop(DBusConnection *conn)
{
-#ifdef HAVE_DBUS_GLIB
- debug("Using D-Bus GLib connection setup");
-
- dbus_connection_setup_with_g_main(conn, NULL);
-#else
dbus_connection_set_watch_functions(conn, add_watch, remove_watch,
watch_toggled, conn, NULL);
@@ -250,7 +237,6 @@ static void setup_dbus_with_main_loop(DBusConnection *conn)
dbus_connection_set_dispatch_status_function(conn, dispatch_status_cb,
conn, NULL);
-#endif
}
DBusConnection *g_dbus_setup_bus(DBusBusType type, const char *name,