diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-05-29 13:49:59 +0200 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-10-08 15:51:00 +0200 |
commit | c82bd2a432a8c56015e0ab377a467ff5c4c85b66 (patch) | |
tree | 7e6975d5f461ba4c9b1ffcaedf7caa2db7d93c1f /4a-hal/4a-hal-manager | |
parent | dbc8a5628ab7928c584f82e17c49a4c996acee60 (diff) |
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 <jonathan.aillet@iot.bzh>
Diffstat (limited to '4a-hal/4a-hal-manager')
-rw-r--r-- | 4a-hal/4a-hal-manager/4a-hal-manager-cb.c | 4 | ||||
-rw-r--r-- | 4a-hal/4a-hal-manager/4a-hal-manager-cb.h | 2 |
2 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 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 <afb/afb-binding.h> // 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); |