summaryrefslogtreecommitdiffstats
path: root/hcid/dbus.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2006-08-18 22:11:58 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2006-08-18 22:11:58 +0000
commit85f475a02165dc506758e0a45e59a9be7f5e8583 (patch)
treeb263d36801ed5f489a5a15c14d0ad47e63141947 /hcid/dbus.h
parentf3e65d0a38d2c5871ddc83347e8abd15bced1251 (diff)
First try at PasskeyAgent Cancel method
Diffstat (limited to 'hcid/dbus.h')
-rw-r--r--hcid/dbus.h24
1 files changed, 18 insertions, 6 deletions
diff --git a/hcid/dbus.h b/hcid/dbus.h
index c8ac1d3f..4671c482 100644
--- a/hcid/dbus.h
+++ b/hcid/dbus.h
@@ -95,6 +95,23 @@ struct active_conn_info {
uint16_t handle;
};
+struct passkey_agent {
+ char *addr;
+ char *name;
+ char *path;
+ struct slist *pending_requests;
+};
+
+struct pending_agent_request {
+ struct passkey_agent *agent;
+ int dev;
+ bdaddr_t sba;
+ bdaddr_t bda;
+ char *path;
+ DBusConnection *conn;
+ DBusPendingCall *call;
+};
+
struct hci_dbus_data {
uint16_t dev_id;
int up;
@@ -112,12 +129,6 @@ struct hci_dbus_data {
struct slist *pending_bondings;
};
-struct passkey_agent {
- char *addr;
- char *name;
- char *path;
-};
-
typedef int register_function_t(DBusConnection *conn, uint16_t id);
typedef int unregister_function_t(DBusConnection *conn, uint16_t id);
@@ -181,6 +192,7 @@ DBusHandlerResult simple_introspect(DBusConnection *conn, DBusMessage *msg, void
service_handler_func_t find_service_handler(struct service_data *services, DBusMessage *msg);
int handle_passkey_request(DBusConnection *conn, int dev, const char *path, bdaddr_t *sba, bdaddr_t *dba);
+void cancel_passkey_agent_requests(struct slist *agents, const char *path, bdaddr_t *dba);
static inline DBusHandlerResult send_reply_and_unref(DBusConnection *conn, DBusMessage *reply)
{