diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-09-11 11:09:15 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-09-24 11:24:37 +0000 |
commit | e37c3a81d88c0fe51a854d51d01a52554b8d67ce (patch) | |
tree | 74f570f0e45325ffb57c91abc401a0c45f716f08 /ctl-lib/ctl-plugin.h | |
parent | dcf433f90bc5fbcd42709a1d1a04c8c20c115807 (diff) |
Add an Init step to the plugins loadflounder_6.0.3flounder_6.0.2flounder_6.0.1flounder/6.0.3flounder/6.0.2flounder/6.0.16.0.36.0.26.0.1
The onload step could be considered as a preinit step. Init stage
happens once all plugins are loaded and so you can refer to them
to add new actions or configuration elements.
Change-Id: I7986265bb1227208d0648bb2c56a1172b164faf1
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'ctl-lib/ctl-plugin.h')
-rw-r--r-- | ctl-lib/ctl-plugin.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ctl-lib/ctl-plugin.h b/ctl-lib/ctl-plugin.h index e4b8ccb..8d9b083 100644 --- a/ctl-lib/ctl-plugin.h +++ b/ctl-lib/ctl-plugin.h @@ -122,6 +122,7 @@ typedef int(*DispatchPluginInstallCbT)(CtlPluginT *plugin, void* handle); #define MACRO_STR_VALUE(arg) #arg #define CTLP_CAPI_REGISTER(pluglabel) CtlPluginMagicT CtlPluginMagic={.uid=pluglabel,.magic=CTL_PLUGIN_MAGIC}; struct afb_binding_data_v2; #define CTLP_ONLOAD(plugin, handle) int CtlPluginOnload(CtlPluginT *plugin, void* handle) +#define CTLP_INIT(plugin, handle) int CtlPluginInit(CtlPluginT *plugin, void* handle) #define CTLP_CAPI(funcname, source, argsJ, queryJ) int funcname(CtlSourceT *source, json_object* argsJ, json_object* queryJ) // LUA2c Wrapper macro. Allows to call C code from Lua script |