diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-05-08 19:39:12 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-05-08 19:39:12 +0000 |
commit | aa215d6fa551a3edbd129d4a163210e98357bdd1 (patch) | |
tree | d117772b0b444240eac624427393e9dff4d92703 /gdbus/gdbus.h | |
parent | 33191e6275ab82aa4161cdf75b45597e4d1568ec (diff) |
Emulate libgdbus API for mainloop integration
Diffstat (limited to 'gdbus/gdbus.h')
-rw-r--r-- | gdbus/gdbus.h | 10 |
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 } |