summaryrefslogtreecommitdiffstats
path: root/common/dbus.h
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2008-03-13 22:27:22 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2008-03-13 22:27:22 +0000
commita89312e54979c0ee6cc82f50e423bcdafbe9df43 (patch)
tree5de94476be7e38742cc805e059342ed89d16be86 /common/dbus.h
parent095a8af653e9d5f7c2cf9c82c19f1281e8ad8b92 (diff)
Added new function to remove the listener based on integer identification
Diffstat (limited to 'common/dbus.h')
-rw-r--r--common/dbus.h4
1 files changed, 3 insertions, 1 deletions
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 <dbus/dbus.h>
+#include <glib.h>
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,