From 51dff31e2c0183458a4ed53c06b02625529cc3e4 Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Tue, 19 Jun 2018 16:33:32 +0200 Subject: Remove boolean library As it was almost never used in code, remove boolean library. Change-Id: I9264ffd5600a7d9526f4f4cfa8209a0cd0e5bb77 Signed-off-by: Jonathan Aillet --- 4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.c | 1 - 4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.h | 1 - 4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c | 3 +-- 4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c | 1 - 4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-link.c | 1 - 4a-hal/4a-hal-controllers/4a-hal-controllers-value-handler.c | 1 - 4a-hal/4a-hal-manager/4a-hal-manager-cb.c | 7 +++---- 4a-hal/4a-hal-manager/4a-hal-manager-events.c | 1 - 4a-hal/4a-hal-manager/4a-hal-manager.c | 1 - 4a-hal/4a-hal-utilities/4a-hal-utilities-appfw-responses-handler.c | 1 - 4a-hal/4a-hal-utilities/4a-hal-utilities-data.c | 1 - 4a-hal/4a-hal-utilities/4a-hal-utilities-data.h | 3 +-- 4a-hal/4a-hal-utilities/4a-hal-utilities-verbs-loader.c | 1 - 13 files changed, 5 insertions(+), 18 deletions(-) diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.c b/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.c index d49a8ba..bd05090 100644 --- a/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.c +++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.c @@ -19,7 +19,6 @@ #include #include -#include #include diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.h b/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.h index d2749a1..9ee7e89 100644 --- a/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.h +++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-alsacore-link.h @@ -19,7 +19,6 @@ #define _HAL_CTLS_ALSACORE_LINK_INCLUDE_ #include -#include #include diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c b/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c index ba3b74d..7e771e5 100644 --- a/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c +++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c @@ -18,7 +18,6 @@ #define _GNU_SOURCE #include -#include #include #include @@ -94,7 +93,7 @@ static int HalCtlsInitOneApi(AFB_ApiT apiHandle) return -3; // Fill SpecificHalDatadata structure - currentCtlHalData->internal = true; + currentCtlHalData->internal = 1; currentCtlHalData->apiName = (char *) ctrlConfig->api; currentCtlHalData->sndCardPath = (char *) ctrlConfig->uid; diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c b/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c index f560c7c..214a984 100644 --- a/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c +++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c @@ -19,7 +19,6 @@ #include #include -#include #include diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-link.c b/4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-link.c index b192374..6874e00 100644 --- a/4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-link.c +++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-mixer-link.c @@ -19,7 +19,6 @@ #include #include -#include #include diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-value-handler.c b/4a-hal/4a-hal-controllers/4a-hal-controllers-value-handler.c index b027333..3ab8178 100644 --- a/4a-hal/4a-hal-controllers/4a-hal-controllers-value-handler.c +++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-value-handler.c @@ -19,7 +19,6 @@ #include #include -#include #include #include 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 #include -#include #include @@ -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 #include -#include #include 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 -#include #include #include diff --git a/4a-hal/4a-hal-utilities/4a-hal-utilities-appfw-responses-handler.c b/4a-hal/4a-hal-utilities/4a-hal-utilities-appfw-responses-handler.c index 590c7c5..e53b6af 100644 --- a/4a-hal/4a-hal-utilities/4a-hal-utilities-appfw-responses-handler.c +++ b/4a-hal/4a-hal-utilities/4a-hal-utilities-appfw-responses-handler.c @@ -19,7 +19,6 @@ #include #include -#include #include "4a-hal-utilities-appfw-responses-handler.h" diff --git a/4a-hal/4a-hal-utilities/4a-hal-utilities-data.c b/4a-hal/4a-hal-utilities/4a-hal-utilities-data.c index aa4fabc..b7947e1 100644 --- a/4a-hal/4a-hal-utilities/4a-hal-utilities-data.c +++ b/4a-hal/4a-hal-utilities/4a-hal-utilities-data.c @@ -19,7 +19,6 @@ #include #include -#include #include diff --git a/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h b/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h index 364c492..4eca34d 100644 --- a/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h +++ b/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h @@ -19,7 +19,6 @@ #define _HAL_UTILITIES_DATA_INCLUDE_ #include -#include #include @@ -71,7 +70,7 @@ struct SpecificHalData { char *sndCardPath; int sndCardId; char *info; - bool internal; + unsigned int internal; char *author; char *version; diff --git a/4a-hal/4a-hal-utilities/4a-hal-utilities-verbs-loader.c b/4a-hal/4a-hal-utilities/4a-hal-utilities-verbs-loader.c index 0d6f06c..538f389 100644 --- a/4a-hal/4a-hal-utilities/4a-hal-utilities-verbs-loader.c +++ b/4a-hal/4a-hal-utilities/4a-hal-utilities-verbs-loader.c @@ -18,7 +18,6 @@ #define _GNU_SOURCE #include -#include #include #include -- cgit 1.2.3-korg