diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-06-05 13:30:11 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-06-05 13:30:11 +0000 |
commit | dac5b3dfc9ce5091315294f938dc84188985dad6 (patch) | |
tree | 759f59d04d54bab34950f29d9cd470615ccecb92 /hcid/agent.h | |
parent | 94f7643c52193c905edaff767c2e9a31b9102a73 (diff) |
Implement first part of missing SSP callbacks
Diffstat (limited to 'hcid/agent.h')
-rw-r--r-- | hcid/agent.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hcid/agent.h b/hcid/agent.h index 2bfe003e..552c91f2 100644 --- a/hcid/agent.h +++ b/hcid/agent.h @@ -30,6 +30,9 @@ typedef void (*agent_cb) (struct agent *agent, DBusError *err, typedef void (*agent_pincode_cb) (struct agent *agent, DBusError *err, const char *pincode, void *user_data); +typedef void (*agent_passkey_cb) (struct agent *agent, DBusError *err, + uint32_t passkey, void *user_data); + typedef void (*agent_remove_cb) (struct agent *agent, void *user_data); struct agent *agent_create(struct adapter *adapter, const char *name, @@ -47,6 +50,13 @@ int agent_request_pincode(struct agent *agent, struct device *device, int agent_confirm_mode_change(struct agent *agent, const char *new_mode, agent_cb cb, void *user_data); +int agent_request_passkey(struct agent *agent, struct device *device, + agent_passkey_cb cb, void *user_data); + +int agent_request_confirmation(struct agent *agent, struct device *device, + uint32_t passkey, agent_cb cb, + void *user_data); + int agent_cancel(struct agent *agent); uint8_t agent_get_io_capability(struct agent *agent); |