summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-05-06 22:42:01 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-05-06 22:42:46 -0700
commit4143c81945126d4f1839a1047aa96a75f1e4c690 (patch)
tree4cb189aa8207c224eb694e741d684429a9d94d5a
parentef871e6e5151b47387348ab8d9e21aeeed072b86 (diff)
binding: bluetooth: use BLUEZ_AT_DEVICE for call_work_create()halibut_7.99.1halibut/7.99.17.99.1
Use the BLUEZ_AT_DEVICE macro instead of explicit string references. Bug-AGL: SPEC-2361 Change-Id: I2e892a7b6e2d838765cfa12dadd970e34c2f5d86 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
-rw-r--r--binding/bluetooth-api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binding/bluetooth-api.c b/binding/bluetooth-api.c
index f594cca..48bc460 100644
--- a/binding/bluetooth-api.c
+++ b/binding/bluetooth-api.c
@@ -985,7 +985,7 @@ static void bluetooth_connect_device(afb_req_t request)
/* optional, connect single profile */
uuid = afb_req_value(request, "uuid");
- cw = call_work_create(ns, "device", device,
+ cw = call_work_create(ns, BLUEZ_AT_DEVICE, device,
"connect_service", "Connect", &error);
if (!cw) {
afb_req_fail_f(request, "failed", "can't queue work %s",
@@ -1099,7 +1099,7 @@ static void bluetooth_pair_device(afb_req_t request)
return;
}
- cw = call_work_create(ns, "device", device,
+ cw = call_work_create(ns, BLUEZ_AT_DEVICE, device,
"pair_device", "Pair", &error);
if (!cw) {
afb_req_fail_f(request, "failed", "can't queue work %s",