diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2006-03-09 19:10:42 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2006-03-09 19:10:42 +0000 |
commit | 45df23c4593250e58e355bf3cde15abb2d6d4c3c (patch) | |
tree | 38ee3f63cb37ab5687dbb7e3abfe1c4814dabe40 /hcid/dbus.h | |
parent | 7297697c324a6113371fd60b3668320e5a4817a7 (diff) |
D-Bus name lifetime tracking support
Diffstat (limited to 'hcid/dbus.h')
-rw-r--r-- | hcid/dbus.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/hcid/dbus.h b/hcid/dbus.h index 7c29e0b0..5c96589e 100644 --- a/hcid/dbus.h +++ b/hcid/dbus.h @@ -24,6 +24,8 @@ #ifndef __H_BLUEZ_DBUS_H__ #define __H_BLUEZ_DBUS_H__ +#include <stdint.h> + #define __END_SIG__ DBUS_TYPE_INVALID_AS_STRING #define BASE_PATH "/org/bluez" @@ -98,6 +100,15 @@ DBusMessage *error_not_connected(DBusMessage *msg); DBusMessage *error_bonding_in_progress(DBusMessage *msg); + +typedef void (*name_cb_t)(const char *name, void *user_data); + +int 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); + + /*======================================================================== BlueZ D-Bus Manager service definitions "/org/bluez/Manager" *========================================================================*/ |