diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2006-08-25 14:03:52 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2006-08-25 14:03:52 +0000 |
commit | 10dcd5fa6f6978b1ea76f370e87dc3f14e46ac0c (patch) | |
tree | 5ead42eaf538e7e6a98c6c314af26f1e3a6956fc /hcid/dbus.h | |
parent | dbe289f011a9ecedf0f4cabb9f25c9564c8aa830 (diff) |
Reduced CancelBonding reply time
Diffstat (limited to 'hcid/dbus.h')
-rw-r--r-- | hcid/dbus.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/hcid/dbus.h b/hcid/dbus.h index 0e0e95bb..90d7b325 100644 --- a/hcid/dbus.h +++ b/hcid/dbus.h @@ -86,10 +86,16 @@ struct discovered_dev_info { struct bonding_request_info { bdaddr_t bdaddr; DBusMessage *rq; - DBusMessage *cancel; + int cancel; int disconnect; /* disconnect after finish */ }; +struct pending_bonding_info { + bdaddr_t bdaddr; + int step; /* 0: waiting host passkey 1:waiting remote passkey */ + +}; + struct active_conn_info { bdaddr_t bdaddr; uint16_t handle; @@ -109,7 +115,7 @@ struct hci_dbus_data { struct slist *passkey_agents; struct bonding_request_info *bonding; struct slist *active_conn; - struct slist *pending_bondings; + struct slist *pending_bondings; /* track D-Bus and non D-Bus requests */ }; struct passkey_agent { @@ -214,6 +220,7 @@ static inline DBusHandlerResult send_reply_and_unref(DBusConnection *conn, DBusM int active_conn_find_by_bdaddr(const void *data, const void *user_data); void bonding_request_free(struct bonding_request_info *dev); +int pending_bonding_cmp(const void *p1, const void *p2); int disc_device_append(struct slist **list, bdaddr_t *bdaddr, name_status_t name_status, int discover_type); int disc_device_req_name(struct hci_dbus_data *dbus_data); |