From 54be328d031b3d8be799a2563d944e06c41c66ec Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Mon, 7 Oct 2019 17:04:44 -0400 Subject: 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-2856 Signed-off-by: Scott Murray Change-Id: Ida157480f95d0e8b0806a1d9af6cc396f4729850 (cherry picked from commit 0a7e93d37803ba31b18c7199cb1efc10ec83e0cc) --- src/plugins/VshlCoreApi.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/plugins/VshlCoreApi.cpp') diff --git a/src/plugins/VshlCoreApi.cpp b/src/plugins/VshlCoreApi.cpp index a28193c..05c894d 100644 --- a/src/plugins/VshlCoreApi.cpp +++ b/src/plugins/VshlCoreApi.cpp @@ -232,9 +232,9 @@ CTLP_CAPI(startListening, source, argsJ, eventJ) { if (!requestId.empty()) { json responseJson; responseJson[STARTLISTENING_JSON_ATTR_REQUEST] = requestId; - AFB_ReqSuccess(source->request, json_tokener_parse(responseJson.dump().c_str()), NULL); + afb_req_success(source->request, json_tokener_parse(responseJson.dump().c_str()), NULL); } else { - AFB_ReqFail(source->request, NULL, "Failed to startListening..."); + afb_req_fail(source->request, NULL, "Failed to startListening..."); } return 0; @@ -280,7 +280,7 @@ CTLP_CAPI(enumerateVoiceAgents, source, argsJ, eventJ) { responseJson[VA_JSON_ATTR_AGENTS] = agentsJson; responseJson[VA_JSON_ATTR_DEFAULT] = defaultAgentId; - AFB_ReqSuccess(source->request, json_tokener_parse(responseJson.dump().c_str()), NULL); + afb_req_success(source->request, json_tokener_parse(responseJson.dump().c_str()), NULL); return 0; } @@ -317,7 +317,7 @@ CTLP_CAPI(subscribe, source, argsJ, eventJ) { } } - AFB_ReqSuccess(source->request, json_object_new_string("Subscription to events successfully completed."), NULL); + afb_req_success(source->request, json_object_new_string("Subscription to events successfully completed."), NULL); return 0; } @@ -344,6 +344,6 @@ CTLP_CAPI(setDefaultVoiceAgent, source, argsJ, eventJ) { return -1; } - AFB_ReqSuccess(source->request, NULL, NULL); + afb_req_success(source->request, NULL, NULL); return 0; } -- cgit 1.2.3-korg