summaryrefslogtreecommitdiffstats
path: root/gdbus/gdbus.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-05-08 19:39:12 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-05-08 19:39:12 +0000
commitaa215d6fa551a3edbd129d4a163210e98357bdd1 (patch)
treed117772b0b444240eac624427393e9dff4d92703 /gdbus/gdbus.h
parent33191e6275ab82aa4161cdf75b45597e4d1568ec (diff)
Emulate libgdbus API for mainloop integration
Diffstat (limited to 'gdbus/gdbus.h')
-rw-r--r--gdbus/gdbus.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h
index d749d5e2..a9f2aa51 100644
--- a/gdbus/gdbus.h
+++ b/gdbus/gdbus.h
@@ -31,10 +31,14 @@ extern "C" {
#include <dbus/dbus.h>
#include <glib.h>
-void setup_dbus_with_main_loop(DBusConnection *conn);
+typedef void (* GDBusDisconnectFunction) (void *user_data);
-DBusConnection *dbus_bus_system_setup_with_main_loop(const char *name,
- void (*disconnect_cb)(void *), void *user_data);
+DBusConnection *g_dbus_setup_bus(DBusBusType type, const char *name,
+ DBusError *error);
+
+gboolean g_dbus_set_disconnect_function(DBusConnection *connection,
+ GDBusDisconnectFunction function,
+ void *user_data, DBusFreeFunction destroy);
#ifdef __cplusplus
}