diff options
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 } |