summaryrefslogtreecommitdiffstats
path: root/4a-hal/4a-hal-manager
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-06-08 11:02:47 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-10-08 15:52:51 +0200
commitd1a287b7908a5c0319e14da47bc5cd2d9adcdc35 (patch)
tree4b90bf4fd40bc5814c4986ce416325e2ea26f375 /4a-hal/4a-hal-manager
parent198ec9d50046cce8058b4936cb359647125a4cf5 (diff)
Update request success macro used in code
Update request success macro used in code to correct compilation error. Change-Id: I0cb9c07b27000935b01aaaa17d5656f05d4e21ff Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to '4a-hal/4a-hal-manager')
-rw-r--r--4a-hal/4a-hal-manager/4a-hal-manager-cb.c14
1 files changed, 7 insertions, 7 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 6d3c4c7..69b925f 100644
--- a/4a-hal/4a-hal-manager/4a-hal-manager-cb.c
+++ b/4a-hal/4a-hal-manager/4a-hal-manager-cb.c
@@ -54,7 +54,7 @@ void HalMgrPing(AFB_ReqT request)
else
AFB_ReqNotice(request, "%s: ping count = %d", request->api, count);
- AFB_ReqSucess(request, json_object_new_int(count), NULL);
+ AFB_ReqSuccess(request, json_object_new_int(count), NULL);
return;
}
@@ -94,7 +94,7 @@ void HalMgrLoaded(AFB_ReqT request)
numberOfLoadedApi = HalUtlGetNumberOfHalInList(HalMgrGlobalData);
if(! numberOfLoadedApi) {
- AFB_ReqSucess(request, NULL, "No Hal Api loaded");
+ AFB_ReqSuccess(request, NULL, "No Hal Api loaded");
return;
}
@@ -136,7 +136,7 @@ void HalMgrLoaded(AFB_ReqT request)
}
}
- AFB_ReqSucess(request, requestAnswer, "Requested data");
+ AFB_ReqSuccess(request, requestAnswer, "Requested data");
}
void HalMgrLoad(AFB_ReqT request)
@@ -209,7 +209,7 @@ void HalMgrLoad(AFB_ReqT request)
// TBD JAI: add subscription to this api status events
- AFB_ReqSucess(request, NULL, "Api successfully registered");
+ AFB_ReqSuccess(request, NULL, "Api successfully registered");
}
void HalMgrUnload(AFB_ReqT request)
@@ -263,7 +263,7 @@ void HalMgrUnload(AFB_ReqT request)
// TBD JAI: remove subscription to this api status events
- AFB_ReqSucess(request, NULL, "Api successfully unregistered");
+ AFB_ReqSuccess(request, NULL, "Api successfully unregistered");
}
// TBD JAI : to implement
@@ -271,7 +271,7 @@ void HalMgrSubscribeEvent(AFB_ReqT request)
{
AFB_ReqWarning(request, "%s not implemented yet", __func__);
- AFB_ReqSucess(request, json_object_new_boolean(false), NULL);
+ AFB_ReqSuccess(request, json_object_new_boolean(false), NULL);
}
// TBD JAI : to implement
@@ -279,5 +279,5 @@ void HalMgrUnsubscribeEvent(AFB_ReqT request)
{
AFB_ReqWarning(request, "%s not implemented yet", __func__);
- AFB_ReqSucess(request, json_object_new_boolean(false), NULL);
+ AFB_ReqSuccess(request, json_object_new_boolean(false), NULL);
} \ No newline at end of file