diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-01-03 12:14:01 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-01-03 12:14:01 +0000 |
commit | 6033ee0c9966238f3732e945841d85ddb5162cc2 (patch) | |
tree | 76d609cb63074d1038187bb29833105493a4517e /hcid/dbus-adapter.h | |
parent | d21f13975ab07dcf9ec8b51fd764d1c5a9b76f92 (diff) |
Add disconnection delay and RemoteDeviceDisconnectRequested signal for the DisconnectRemoteDevice method
Diffstat (limited to 'hcid/dbus-adapter.h')
-rw-r--r-- | hcid/dbus-adapter.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/hcid/dbus-adapter.h b/hcid/dbus-adapter.h index 3c21c179..288cc338 100644 --- a/hcid/dbus-adapter.h +++ b/hcid/dbus-adapter.h @@ -34,6 +34,8 @@ #define BONDING_TIMEOUT 45000 /* 45 sec */ +#define DC_PENDING_TIMEOUT 2000 /* 2 secs */ + /* Discover types */ #define DISCOVER_TYPE_NONE 0x00 #define STD_INQUIRY 0x01 @@ -77,6 +79,13 @@ struct active_conn_info { uint16_t handle; }; +struct pending_dc_info { + DBusConnection *conn; + DBusMessage *msg; + uint16_t conn_handle; + guint timeout_id; +}; + struct adapter { uint16_t dev_id; int up; @@ -100,6 +109,7 @@ struct adapter { struct slist *active_conn; struct bonding_request_info *bonding; struct slist *pin_reqs; + struct pending_dc_info *pending_dc; }; DBusHandlerResult handle_adapter_method(DBusConnection *conn, DBusMessage *msg, void *data); @@ -112,4 +122,6 @@ struct slist *service_classes_str(uint32_t class); int pending_remote_name_cancel(struct adapter *adapter); +void dc_pending_timeout_cleanup(struct adapter *adapter); + #endif /* __ADAPTER_H */ |