diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-06-01 21:56:45 +0200 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-10-08 15:52:51 +0200 |
commit | b62ab4c3fa9595715538dda7dfa330dcb77b0778 (patch) | |
tree | 4b0ae68e77eb7e192fd0900ff2ca03e8db00663c /4a-hal/4a-hal-utilities/4a-hal-utilities-verbs-loader.h | |
parent | d7496f864274e75f0635a0c20b93175d00a26114 (diff) |
Include afb-definitions when using application framework
Include <afb-definitions.h> from 'app-controller' instead of
<afb/afb-binding.h> and use its definitions.
It allows to migrate from an application framework version to another
with less impact on the code.
Change-Id: I22359cd3fe22145b3d6c551f227be2ba7e1b65d5
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to '4a-hal/4a-hal-utilities/4a-hal-utilities-verbs-loader.h')
-rw-r--r-- | 4a-hal/4a-hal-utilities/4a-hal-utilities-verbs-loader.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/4a-hal/4a-hal-utilities/4a-hal-utilities-verbs-loader.h b/4a-hal/4a-hal-utilities/4a-hal-utilities-verbs-loader.h index 3bad080..113a0b0 100644 --- a/4a-hal/4a-hal-utilities/4a-hal-utilities-verbs-loader.h +++ b/4a-hal/4a-hal-utilities/4a-hal-utilities-verbs-loader.h @@ -20,19 +20,18 @@ #include <stdio.h> -#define AFB_BINDING_VERSION dyn -#include <afb/afb-binding.h> +#include <afb-definitions.h> // Structure to store data necessary to add a verb to a dynamic api struct HalUtlApiVerb { const char *verb; /* name of the verb, NULL only at end of the array */ - void (*callback)(afb_request *req); /* callback function implementing the verb */ + void (*callback)(AFB_ReqT req); /* callback function implementing the verb */ const struct afb_auth *auth; /* required authorisation, can be NULL */ const char *info; /* some info about the verb, can be NULL */ uint32_t session; }; // Verb that allows to add verb to a dynamic api -int HalUtlLoadVerbs(afb_dynapi *apiHandle, struct HalUtlApiVerb *verbs); +int HalUtlLoadVerbs(AFB_ApiT apiHandle, struct HalUtlApiVerb *verbs); #endif /* _HAL_UTILITIES_VERBS_LOADER_INCLUDE_ */
\ No newline at end of file |