binding: bluetooth: change 'card' to 'handle' as field name 01/19501/1
authorMatt Ranostay <matt.ranostay@konsulko.com>
Sat, 5 Jan 2019 04:30:10 +0000 (20:30 -0800)
committerMatt Ranostay <matt.ranostay@konsulko.com>
Sat, 5 Jan 2019 04:32:32 +0000 (20:32 -0800)
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 <matt.ranostay@konsulko.com>
binding/bluetooth-pbap-binding.c

index 9d30ed6..daf9cee 100644 (file)
@@ -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);