From d6a16516a9f6deae8342f00e8186b02d0019a1e1 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Wed, 15 Mar 2006 18:18:38 +0000 Subject: sending the RemoteNameUpdate signal once instead of send it on every inquiry result event --- hcid/dbus.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'hcid/dbus.h') diff --git a/hcid/dbus.h b/hcid/dbus.h index c791e112..ec2efd93 100644 --- a/hcid/dbus.h +++ b/hcid/dbus.h @@ -79,6 +79,16 @@ typedef enum { RESOLVING_NAMES } discover_state_t; +typedef enum { + NAME_PENDING, + NAME_SENT +}name_status_t; + +struct discovered_dev_info { + bdaddr_t *addr; + name_status_t name_status; +}; + struct hci_dbus_data { uint16_t dev_id; uint16_t path_id; @@ -156,6 +166,8 @@ static inline DBusHandlerResult send_reply_and_unref(DBusConnection *conn, DBusM return DBUS_HANDLER_RESULT_HANDLED; } +void discovered_device_free(void *data, void *user_data); + /* * Scanning modes, used by DEV_SET_MODE * off: remote devices are not allowed to find or connect to this device -- cgit