aboutsummaryrefslogtreecommitdiffstats
path: root/4a-hal/4a-hal-manager
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-06-19 16:33:32 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-10-08 15:53:53 +0200
commit51dff31e2c0183458a4ed53c06b02625529cc3e4 (patch)
tree3386bc58137ec79cb96620be4fe0ac6eb330f794 /4a-hal/4a-hal-manager
parent8e923d9e07f483d209269d4af9070ed729600f05 (diff)
Remove boolean library
As it was almost never used in code, remove boolean library. Change-Id: I9264ffd5600a7d9526f4f4cfa8209a0cd0e5bb77 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.c7
-rw-r--r--4a-hal/4a-hal-manager/4a-hal-manager-events.c1
-rw-r--r--4a-hal/4a-hal-manager/4a-hal-manager.c1
3 files changed, 3 insertions, 6 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 73e0e7a..680863e 100644
--- a/4a-hal/4a-hal-manager/4a-hal-manager-cb.c
+++ b/4a-hal/4a-hal-manager/4a-hal-manager-cb.c
@@ -19,7 +19,6 @@
#include <stdio.h>
#include <string.h>
-#include <stdbool.h>
#include <wrap-json.h>
@@ -193,7 +192,7 @@ void HalMgrLoad(AFB_ReqT request)
addedHal = HalUtlAddHalApiToHalList(&HalMgrGlobalData->first);
- addedHal->internal = false;
+ addedHal->internal = 0;
// TBD JAI : initialize external to unavailable once event from external hal will be handled
addedHal->status = HAL_STATUS_READY;
@@ -278,7 +277,7 @@ void HalMgrSubscribeEvent(AFB_ReqT request)
{
AFB_ReqWarning(request, "%s not implemented yet", __func__);
- AFB_ReqSuccess(request, json_object_new_boolean(false), NULL);
+ AFB_ReqSuccess(request, json_object_new_boolean(0), NULL);
}
// TBD JAI : to implement
@@ -286,5 +285,5 @@ void HalMgrUnsubscribeEvent(AFB_ReqT request)
{
AFB_ReqWarning(request, "%s not implemented yet", __func__);
- AFB_ReqSuccess(request, json_object_new_boolean(false), NULL);
+ AFB_ReqSuccess(request, json_object_new_boolean(0), NULL);
} \ No newline at end of file
diff --git a/4a-hal/4a-hal-manager/4a-hal-manager-events.c b/4a-hal/4a-hal-manager/4a-hal-manager-events.c
index a2bbe33..96299a0 100644
--- a/4a-hal/4a-hal-manager/4a-hal-manager-events.c
+++ b/4a-hal/4a-hal-manager/4a-hal-manager-events.c
@@ -19,7 +19,6 @@
#include <stdio.h>
#include <string.h>
-#include <stdbool.h>
#include <wrap-json.h>
diff --git a/4a-hal/4a-hal-manager/4a-hal-manager.c b/4a-hal/4a-hal-manager/4a-hal-manager.c
index 61e2474..8a447c4 100644
--- a/4a-hal/4a-hal-manager/4a-hal-manager.c
+++ b/4a-hal/4a-hal-manager/4a-hal-manager.c
@@ -18,7 +18,6 @@
#define _GNU_SOURCE
#include <stdio.h>
-#include <stdbool.h>
#include <string.h>
#include <afb-definitions.h>