diff options
author | saman <mahmoudi.saman1@gmail.com> | 2020-09-19 08:07:38 +0430 |
---|---|---|
committer | Saman Mahmoodi <mahmoudi.saman1@gmail.com> | 2020-10-06 05:12:22 +0000 |
commit | 7a2bf13a66a868157722a06bcf259f94ed6441b5 (patch) | |
tree | 3f1b04c42610de5b93d1900f95913f83f7130d96 /binding/bluetooth-common.h | |
parent | 8ba3e0d2ffe62c2c94844d8b536c1d49e12e35dd (diff) |
Adding pairing request with authentication as "RequestPinCode"
Adding outgoing pairing request with another BT device when we call pair verb.
"RequestPinCode" is handled as xml into bluetooth-agent.c to confirm a pincode and send it to BT device when we call pair request from AGL device to other device.
Bug-AGL: SPEC-3610
Signed-off-by: saman <mahmoudi.saman1@gmail.com>
Change-Id: I4fa8c9ab5d3bbf323cee7645f217bb1056d93b65
Diffstat (limited to 'binding/bluetooth-common.h')
-rw-r--r-- | binding/bluetooth-common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/binding/bluetooth-common.h b/binding/bluetooth-common.h index 70975a5..616e322 100644 --- a/binding/bluetooth-common.h +++ b/binding/bluetooth-common.h @@ -78,6 +78,7 @@ struct init_data { struct agent_data { int pin_code; + gchar *fixed_pincode; gchar *device_path; }; @@ -105,6 +106,9 @@ void bluetooth_unregister_agent(struct bluetooth_state *ns); gchar *get_default_adapter(afb_api_t api); int set_default_adapter(afb_api_t api, const char *adapter); +int set_pincode(afb_api_t api, const char *pincode, char **error); +gchar *get_pincode(afb_api_t api); + /* utility methods in bluetooth-util.c */ extern gboolean auto_lowercase_keys; |