summaryrefslogtreecommitdiffstats
path: root/hcid/dbus.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2006-03-13 20:54:47 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2006-03-13 20:54:47 +0000
commit1477aa78883562b5d5e97e4ec6fa2d23216673c2 (patch)
treed40e8420180c283e1af85997cfdedeb6bdab8ad3 /hcid/dbus.h
parent1fe7ab081842276d8db73a44cc64c2115b618cc2 (diff)
More passkey handler functionality
Diffstat (limited to 'hcid/dbus.h')
-rw-r--r--hcid/dbus.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/hcid/dbus.h b/hcid/dbus.h
index 14011fa4..beb9accc 100644
--- a/hcid/dbus.h
+++ b/hcid/dbus.h
@@ -27,6 +27,7 @@
#include <stdint.h>
#include <dbus/dbus.h>
#include <bluetooth/bluetooth.h>
+#include "list.h"
#define BASE_PATH "/org/bluez"
#define BASE_INTERFACE "org.bluez"
@@ -76,9 +77,10 @@ struct hci_dbus_data {
uint32_t timeout_hits;
timeout_handler_func_t *timeout_handler;
uint8_t mode; /* scan mode */
- uint8_t resolve_name; /* send name on discover process */
+ int resolve_name; /* send name on discover process */
struct slist *discovered_devices;
char *requestor_name; /* requestor unique name */
+ struct slist *passkey_agents;
};
struct passkey_agent {
@@ -130,7 +132,7 @@ DBusHandlerResult handle_security_method(DBusConnection *conn, DBusMessage *msg,
service_handler_func_t find_service_handler(struct service_data *services, DBusMessage *msg);
-int call_default_passkey_agent(int dev, const char *path, bdaddr_t *sba, bdaddr_t *dba);
+int handle_passkey_request(int dev, const char *path, bdaddr_t *sba, bdaddr_t *dba);
static inline DBusHandlerResult send_reply_and_unref(DBusConnection *conn, DBusMessage *reply)
{