summaryrefslogtreecommitdiffstats
path: root/4a-hal/4a-hal-manager/4a-hal-manager-cb.c
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-05-23 20:21:48 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-10-08 15:51:00 +0200
commit5a2853b996f025b1d331ecbc9c5c136398343f4a (patch)
treeeaec71824885751f3935be89498f510463db48b4 /4a-hal/4a-hal-manager/4a-hal-manager-cb.c
parent5fa641b973806749d85e73b7821ac8098d6607f6 (diff)
Change names of some structures fields
Change names of some structures fields to match the fileds name in controller structure. Change-Id: I579ec53835daa010154982539d09d5a2dcbd28b2 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to '4a-hal/4a-hal-manager/4a-hal-manager-cb.c')
-rw-r--r--4a-hal/4a-hal-manager/4a-hal-manager-cb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/4a-hal/4a-hal-manager/4a-hal-manager-cb.c b/4a-hal/4a-hal-manager/4a-hal-manager-cb.c
index a2d946b..2f9fc9f 100644
--- a/4a-hal/4a-hal-manager/4a-hal-manager-cb.c
+++ b/4a-hal/4a-hal-manager/4a-hal-manager-cb.c
@@ -118,7 +118,7 @@ void HalMgrLoaded(afb_request *request)
for(cpt = 0; cpt < numberOfLoadedApi; cpt++) {
wrap_json_pack(&apiObject,
"{s:i}",
- currentHalData->name,
+ currentHalData->apiName,
(unsigned int) currentHalData->status);
json_object_array_add(requestAnswer, apiObject);
@@ -129,7 +129,7 @@ void HalMgrLoaded(afb_request *request)
for(cpt = 0; cpt < numberOfLoadedApi; cpt++) {
wrap_json_pack(&apiObject,
"{s:s s:i s:s s:i s:s s:s s:s}",
- "api", currentHalData->name,
+ "api", currentHalData->apiName,
"status", (int) currentHalData->status,
"sndcard", currentHalData->sndCard,
"internal", (int) currentHalData->internal,
@@ -143,7 +143,7 @@ void HalMgrLoaded(afb_request *request)
}
else { // Case if request option is empty or not valid
for(cpt = 0; cpt < numberOfLoadedApi; cpt++) {
- json_object_array_add(requestAnswer, json_object_new_string(currentHalData->name));
+ json_object_array_add(requestAnswer, json_object_new_string(currentHalData->apiName));
currentHalData = currentHalData->next;
}