summaryrefslogtreecommitdiffstats
path: root/hcid/dbus.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-09-15 14:44:22 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-09-15 14:44:22 +0000
commit0ab6b68b07ee96bf4bd4cf0fe7d4b68582b5caf5 (patch)
tree77d374eb81c90b66d9994c9cd058812d49209a16 /hcid/dbus.h
parent87123c20dcf8baf2b952709ff2aacb07a21ca1b3 (diff)
Use L2CAP raw sockets for HCI connection creation
Diffstat (limited to 'hcid/dbus.h')
-rw-r--r--hcid/dbus.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/hcid/dbus.h b/hcid/dbus.h
index 34e6fe0c..ebd634a2 100644
--- a/hcid/dbus.h
+++ b/hcid/dbus.h
@@ -86,15 +86,16 @@ struct discovered_dev_info {
struct bonding_request_info {
bdaddr_t bdaddr;
+ DBusConnection *conn;
DBusMessage *rq;
+ GIOChannel *io;
+ guint io_id;
int cancel;
- int disconnect; /* disconnect after finish */
};
-struct pending_bonding_info {
+struct pending_pin_info {
bdaddr_t bdaddr;
- int step; /* 0: waiting host passkey 1:waiting remote passkey */
-
+ int replied; /* If we've already replied to the request */
};
struct active_conn_info {
@@ -115,9 +116,9 @@ struct hci_dbus_data {
char *discovery_requestor; /* discovery requestor unique name */
DBusMessage *discovery_cancel; /* discovery cancel message request */
struct slist *passkey_agents;
- struct bonding_request_info *bonding;
struct slist *active_conn;
- struct slist *pending_bondings; /* track D-Bus and non D-Bus requests */
+ struct bonding_request_info *bonding;
+ struct slist *pin_reqs;
};
struct passkey_agent {
@@ -227,7 +228,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 pin_req_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);