summaryrefslogtreecommitdiffstats
path: root/hcid/dbus.h
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2006-03-14 18:53:37 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2006-03-14 18:53:37 +0000
commit15553064885d4ff312ebc4fe2fe3e39e85f94ef2 (patch)
tree978f0ca6f2dfdb64839ecb599391d1d6e6cbd9a6 /hcid/dbus.h
parent55dc9d47e12b483f6495ae6eaeeb2a7be2a2f02a (diff)
Fixed cancel discovery: checking the discover state to cancel the inquiry or remote name request procedure
Diffstat (limited to 'hcid/dbus.h')
-rw-r--r--hcid/dbus.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/hcid/dbus.h b/hcid/dbus.h
index beb9accc..3be9741d 100644
--- a/hcid/dbus.h
+++ b/hcid/dbus.h
@@ -70,6 +70,13 @@ struct service_data {
typedef int (timeout_handler_func_t) (void *data);
+typedef enum {
+ DISCOVER_OFF,
+ DISCOVER_RUNNING,
+ DISCOVER_RUNNING_WITH_NAMES,
+ RESOLVING_NAMES
+} discover_state_t;
+
struct hci_dbus_data {
uint16_t dev_id;
uint16_t path_id;
@@ -77,7 +84,7 @@ struct hci_dbus_data {
uint32_t timeout_hits;
timeout_handler_func_t *timeout_handler;
uint8_t mode; /* scan mode */
- int resolve_name; /* send name on discover process */
+ discover_state_t discover_state;
struct slist *discovered_devices;
char *requestor_name; /* requestor unique name */
struct slist *passkey_agents;