summaryrefslogtreecommitdiffstats
path: root/binding/bluetooth-map-api.c
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-05-05 21:36:16 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-05-05 21:38:02 -0700
commit5cc101a486a5597c5143fce2078c2493e2aa7e82 (patch)
tree72083c64db04e260c861b4498516015ed9b264d4 /binding/bluetooth-map-api.c
parentd01713989051d7651378994316acbdacd8ab8a4d (diff)
binding: bluetooth-map: remove disconnect message
Disconnect message currently would be triggered with every bluetooth device disconnection. So remove until it checks the UUID of the respective device. Bug-AGL: SPEC-2351 Change-Id: If2a814c56fe7b98b2fde2664add32d66bb7034db Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding/bluetooth-map-api.c')
-rw-r--r--binding/bluetooth-map-api.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/binding/bluetooth-map-api.c b/binding/bluetooth-map-api.c
index c72e7e2..4ede612 100644
--- a/binding/bluetooth-map-api.c
+++ b/binding/bluetooth-map-api.c
@@ -438,7 +438,7 @@ static void discovery_result_cb(void *closure, struct json_object *result,
static void process_connection_event(afb_api_t api, struct json_object *object)
{
struct json_object *val = NULL, *props = NULL;
- const char *action, *device;
+ const char *action;
json_object_object_get_ex(object, "action", &val);
if (!val)
@@ -461,14 +461,6 @@ static void process_connection_event(afb_api_t api, struct json_object *object)
args, discovery_result_cb, NULL);
return;
}
-
- json_object_object_get_ex(object, "device", &val);
- if (!val)
- return;
-
- device = json_object_get_string(val);
-
- AFB_NOTICE("MAP device disconnected: %s", device);
}
static int init(afb_api_t api)