diff options
author | Scott Murray <scott.murray@konsulko.com> | 2019-10-07 17:36:39 -0400 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2019-10-08 18:18:43 -0400 |
commit | 218cc70720fce6235d74fd4d851629dfda34a00e (patch) | |
tree | ec433213f54c97855816a29991c0b7eb299f4fc9 /src/plugins/VshlCapabilitiesApi.cpp | |
parent | d8ddb879b61b956d0a7ebd6a181595c9a41a9562 (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: Ib52d00939e0c5998004c96b9ec1a41905f8d71fb
Diffstat (limited to 'src/plugins/VshlCapabilitiesApi.cpp')
-rw-r--r-- | src/plugins/VshlCapabilitiesApi.cpp | 16 |
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; } |