From: Matt Ranostay Date: Sat, 5 Jan 2019 04:30:10 +0000 (-0800) Subject: binding: bluetooth: change 'card' to 'handle' as field name X-Git-Tag: 6.99.4~2 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=e6612a138a906e965f434586f70b318363ac9473;p=apps%2Fagl-service-bluetooth-pbap.git binding: bluetooth: change 'card' to 'handle' as field name To keep parameter and field repsonses consistent name 'card' to 'handle' which entry verb uses. Bug-AGL: SPEC-2095 Change-Id: I7964469a631b5aeb19814b595c4c4f4ca394040a Signed-off-by: Matt Ranostay --- diff --git a/binding/bluetooth-pbap-binding.c b/binding/bluetooth-pbap-binding.c index 9d30ed6..daf9cee 100644 --- a/binding/bluetooth-pbap-binding.c +++ b/binding/bluetooth-pbap-binding.c @@ -415,7 +415,7 @@ static void search(afb_req_t request) json_object *result_obj = json_object_new_object(); json_object *card_str = json_object_new_string(card); json_object *name_str = json_object_new_string(name); - json_object_object_add(result_obj, "card", card_str); + json_object_object_add(result_obj, "handle", card_str); json_object_object_add(result_obj, "name", name_str); json_object_array_add(results_array, result_obj); g_free(card);