From a89312e54979c0ee6cc82f50e423bcdafbe9df43 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Thu, 13 Mar 2008 22:27:22 +0000 Subject: Added new function to remove the listener based on integer identification --- common/dbus.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common/dbus.h') diff --git a/common/dbus.h b/common/dbus.h index b65a83c9..b8223059 100644 --- a/common/dbus.h +++ b/common/dbus.h @@ -25,6 +25,7 @@ #define __H_BLUEZ_DBUS_H__ #include +#include void setup_dbus_server_with_main_loop(DBusServer *server); void setup_dbus_with_main_loop(DBusConnection *conn); @@ -42,10 +43,11 @@ DBusHandlerResult simple_introspect(DBusConnection *conn, typedef void (*name_cb_t)(const char *name, void *user_data); -int name_listener_add(DBusConnection *connection, const char *name, +guint name_listener_add(DBusConnection *connection, const char *name, name_cb_t func, void *user_data); int name_listener_remove(DBusConnection *connection, const char *name, name_cb_t func, void *user_data); +gboolean name_listener_id_remove(guint id); int name_listener_indicate_disconnect(DBusConnection *connection); dbus_bool_t dbus_bus_get_unix_process_id(DBusConnection *conn, const char *name, -- cgit