From 7a2bf13a66a868157722a06bcf259f94ed6441b5 Mon Sep 17 00:00:00 2001 From: saman Date: Sat, 19 Sep 2020 08:07:38 +0430 Subject: 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 Change-Id: I4fa8c9ab5d3bbf323cee7645f217bb1056d93b65 --- binding/bluetooth-common.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'binding/bluetooth-common.h') 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; -- cgit 1.2.3-korg