From 3639b502949565aa203559c908cd4ad878a180ae Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Mon, 13 May 2019 19:53:08 -0700 Subject: binding: bluetooth-map: change recipient entry to sender In notification event it is the sender's vCard that is displayed change the naming to reflect that. Bug-AGL: SPEC-2351 SPEC-2392 Change-Id: Id7c7addee7c72a0b6dcfe1a0f50a6b9843d5797a Signed-off-by: Matt Ranostay --- binding/bluetooth-map-bmessage.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'binding/bluetooth-map-bmessage.c') diff --git a/binding/bluetooth-map-bmessage.c b/binding/bluetooth-map-bmessage.c index fd19772..d8e8f63 100644 --- a/binding/bluetooth-map-bmessage.c +++ b/binding/bluetooth-map-bmessage.c @@ -75,14 +75,14 @@ static gboolean __expect(gchar ***msg, gchar *str, json_object *jresp, gboolean #define expect(msg, str, jresp) { if (!__expect(msg, str, jresp, TRUE)) { return FALSE; }; } -static gboolean parse_recipient_vcard(gchar ***msg, json_object *jresp) +static gboolean parse_sender_vcard(gchar ***msg, json_object *jresp) { json_object *jobj; expect(msg, "VERSION:", NULL); jobj = json_object_new_object(); - json_object_object_add(jresp, "recipient", jobj); + json_object_object_add(jresp, "sender", jobj); expect(msg, "FN", jobj); expect(msg, "N", jobj); @@ -109,7 +109,7 @@ static gboolean __bmessage_parse(gchar **msg, json_object *jresp) while (*msg) { if (!vcard && __expect(&msg, "BEGIN:VCARD", NULL, TRUE)) { - vcard = parse_recipient_vcard(&msg, jresp); + vcard = parse_sender_vcard(&msg, jresp); continue; } -- cgit 1.2.3-korg