From c82bd2a432a8c56015e0ab377a467ff5c4c85b66 Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Tue, 29 May 2018 13:49:59 +0200 Subject: Use json_object* instead of struct json_object* In code, use json_object* instead of struct json_object*. Change-Id: I9b37f30807331b6f85dc7f36242d5c1206093565 Signed-off-by: Jonathan Aillet --- 4a-hal/4a-hal-manager/4a-hal-manager-cb.c | 4 ++-- 4a-hal/4a-hal-manager/4a-hal-manager-cb.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to '4a-hal/4a-hal-manager') 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 e4d9cc7..8df79d6 100644 --- a/4a-hal/4a-hal-manager/4a-hal-manager-cb.c +++ b/4a-hal/4a-hal-manager/4a-hal-manager-cb.c @@ -33,7 +33,7 @@ ******************************************************************************/ // TODO JAI : to implement -void HalMgrDispatchApiEvent(afb_dynapi *apiHandle, const char *evtLabel, struct json_object *eventJ) +void HalMgrDispatchApiEvent(afb_dynapi *apiHandle, const char *evtLabel, json_object *eventJ) { AFB_DYNAPI_WARNING(apiHandle, "JAI :%s not implemented yet", __func__); // Use "4a-hal-manager-events.h" to handle events @@ -72,7 +72,7 @@ void HalMgrLoaded(afb_request *request) struct HalMgrData *HalMgrGlobalData; struct SpecificHalData *currentHalData; - struct json_object *requestJson, *requestAnswer, *apiObject; + json_object *requestJson, *requestAnswer, *apiObject; apiHandle = (afb_dynapi *) afb_request_get_dynapi(request); if(! apiHandle) { diff --git a/4a-hal/4a-hal-manager/4a-hal-manager-cb.h b/4a-hal/4a-hal-manager/4a-hal-manager-cb.h index f2f9ce0..a0b7509 100644 --- a/4a-hal/4a-hal-manager/4a-hal-manager-cb.h +++ b/4a-hal/4a-hal-manager/4a-hal-manager-cb.h @@ -24,7 +24,7 @@ #include // Event handler -void HalMgrDispatchApiEvent(afb_dynapi *apiHandle, const char *evtLabel, struct json_object *eventJ); +void HalMgrDispatchApiEvent(afb_dynapi *apiHandle, const char *evtLabel, json_object *eventJ); // Exported verbs callbacks void HalMgrPing(afb_request *request); -- cgit 1.2.3-korg