summaryrefslogtreecommitdiffstats
path: root/src/plugins/VshlCoreApi.cpp
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2019-10-07 17:04:44 -0400
committerScott Murray <scott.murray@konsulko.com>2019-10-08 18:17:58 -0400
commit0a7e93d37803ba31b18c7199cb1efc10ec83e0cc (patch)
treef0e8b12ee562c5d5ba58326896c0062d34ab6a0b /src/plugins/VshlCoreApi.cpp
parent4b6fce387aa0b175bfb1b30de8d671434918a217 (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-2856 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I0e1ee659432e3d78ed4cdd419a79bebbead13f39
Diffstat (limited to 'src/plugins/VshlCoreApi.cpp')
-rw-r--r--src/plugins/VshlCoreApi.cpp10
1 files changed, 5 insertions, 5 deletions
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;
}