summaryrefslogtreecommitdiff
path: root/src/agent.h
diff options
context:
space:
mode:
authorScott James Remnant <scott@netsplit.com>2012-04-05 15:29:35 -0700
committerJohan Hedberg <johan.hedberg@intel.com>2012-04-12 14:07:34 +0300
commit32a92a9b5a6647dcc05b6c606580e454d1ed608e (patch)
treed846b4e0835dd4bbe575295e45670688dc09d6b1 /src/agent.h
parent9bb3d6426307cd144c6557bebff60267b79ce192 (diff)
downloadbluez-32a92a9b5a6647dcc05b6c606580e454d1ed608e.tar.gz
agent: add DisplayPinCode method
In constrast to DisplayPasskey, this sends a UTF-8 string PIN code to the agent; also we support a callback for the case where the Agent doesn't implement this new method so we can fallback.
Diffstat (limited to 'src/agent.h')
-rw-r--r--src/agent.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/agent.h b/src/agent.h
index f62bf3b68..69ad42b92 100644
--- a/src/agent.h
+++ b/src/agent.h
@@ -64,6 +64,10 @@ int agent_request_confirmation(struct agent *agent, struct btd_device *device,
int agent_display_passkey(struct agent *agent, struct btd_device *device,
uint32_t passkey);
+int agent_display_pincode(struct agent *agent, struct btd_device *device,
+ const char *pincode, agent_cb cb,
+ void *user_data, GDestroyNotify destroy);
+
int agent_cancel(struct agent *agent);
gboolean agent_is_busy(struct agent *agent, void *user_data);