summaryrefslogtreecommitdiffstats
path: root/src/plugins/VshlCapabilitiesApi.cpp
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2019-10-07 17:36:39 -0400
committerScott Murray <scott.murray@konsulko.com>2019-10-15 11:37:07 -0400
commit62f552fe640df18320dd3afb1f141e8a1aedf2f4 (patch)
treeec433213f54c97855816a29991c0b7eb299f4fc9 /src/plugins/VshlCapabilitiesApi.cpp
parentf3013d12ea27aa5849ec8da5aed1e3eebfa1b845 (diff)
Switch to appcontroller library
Remove old app-controller submodule usage in favor of library from the toolchain. Also update dynamic API calls for V3. Bug-AGL: SPEC-2857 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ia93b162764eb2e700487c05fe9a0dbbdc8843931 (cherry picked from commit 218cc70720fce6235d74fd4d851629dfda34a00e)
Diffstat (limited to 'src/plugins/VshlCapabilitiesApi.cpp')
-rw-r--r--src/plugins/VshlCapabilitiesApi.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/VshlCapabilitiesApi.cpp b/src/plugins/VshlCapabilitiesApi.cpp
index 066edd5..78c686f 100644
--- a/src/plugins/VshlCapabilitiesApi.cpp
+++ b/src/plugins/VshlCapabilitiesApi.cpp
@@ -117,7 +117,7 @@ CTLP_CAPI(guiMetadataSubscribe, source, argsJ, eventJ) {
}
}
- AFB_ReqSuccess(
+ afb_req_success(
source->request, json_object_new_string("Subscription to guimetadata events successfully completed."), NULL);
return 0;
}
@@ -165,7 +165,7 @@ CTLP_CAPI(guiMetadataPublish, source, argsJ, eventJ) {
return -1;
}
- AFB_ReqSuccess(source->request, json_object_new_string("Successfully published guimetadata messages."), NULL);
+ afb_req_success(source->request, json_object_new_string("Successfully published guimetadata messages."), NULL);
return 0;
}
@@ -201,7 +201,7 @@ CTLP_CAPI(phonecontrolSubscribe, source, argsJ, eventJ) {
}
}
- AFB_ReqSuccess(
+ afb_req_success(
source->request, json_object_new_string("Subscription to phone control events successfully completed."), NULL);
return 0;
}
@@ -245,7 +245,7 @@ CTLP_CAPI(phonecontrolPublish, source, argsJ, eventJ) {
return -1;
}
- AFB_ReqSuccess(source->request, json_object_new_string("Successfully published phone control messages."), NULL);
+ afb_req_success(source->request, json_object_new_string("Successfully published phone control messages."), NULL);
return 0;
}
@@ -281,7 +281,7 @@ CTLP_CAPI(navigationSubscribe, source, argsJ, eventJ) {
}
}
- AFB_ReqSuccess(
+ afb_req_success(
source->request, json_object_new_string("Subscription to navigation events successfully completed."), NULL);
return 0;
}
@@ -325,7 +325,7 @@ CTLP_CAPI(navigationPublish, source, argsJ, eventJ) {
return -1;
}
- AFB_ReqSuccess(source->request, json_object_new_string("Successfully published navigation messages."), NULL);
+ afb_req_success(source->request, json_object_new_string("Successfully published navigation messages."), NULL);
return 0;
}
@@ -361,7 +361,7 @@ CTLP_CAPI(playbackControllerSubscribe, source, argsJ, eventJ) {
}
}
- AFB_ReqSuccess(
+ afb_req_success(
source->request, json_object_new_string("Subscription to playbackcontroller events successfully completed."), NULL);
return 0;
}
@@ -405,6 +405,6 @@ CTLP_CAPI(playbackControllerPublish, source, argsJ, eventJ) {
return -1;
}
- AFB_ReqSuccess(source->request, json_object_new_string("Successfully published playbackcontroller messages."), NULL);
+ afb_req_success(source->request, json_object_new_string("Successfully published playbackcontroller messages."), NULL);
return 0;
}