From cfd9944c77a61215250c3b0f81978a1236d4c590 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Mon, 24 Sep 2018 14:40:32 +0800 Subject: binding: bluetooth: return adapter/device versus bluez path To allow this binding API to be bluetooth stack agnostic remove pure bluez paths, and replace with generic fields. Bug-AGL: SPEC-1630 Change-Id: Iadba73782b6339df2ca5937e16a654e7ef3e477b Signed-off-by: Matt Ranostay --- binding/bluetooth-agent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'binding/bluetooth-agent.c') diff --git a/binding/bluetooth-agent.c b/binding/bluetooth-agent.c index b6ae5fe..a942baa 100644 --- a/binding/bluetooth-agent.c +++ b/binding/bluetooth-agent.c @@ -101,7 +101,8 @@ static void handle_method_call( jev = json_object_new_object(); json_object_object_add(jev, "action", json_object_new_string("request_confirmation")); - json_object_object_add(jev, "device", json_object_new_string(path)); + + json_process_path(jev, path); json_object_object_add(jev, "pincode", json_object_new_int(pin)); cw->agent_data.pin_code = pin; -- cgit 1.2.3-korg