diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-05-14 15:08:31 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-05-14 15:09:19 +0200 |
commit | b5ceb3cca02bd46d2a6296631fe607b3edd38e17 (patch) | |
tree | 27bf59f5c7a3663036e0a364033ebc1b87490aa5 /ctl-lib/ctl-lua.h | |
parent | 0ff8c30892be48ecba1265276532f94b242f6289 (diff) |
Format
Change-Id: Ied901f39cd6814e5afd9811248b0a1fb401f3e76
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'ctl-lib/ctl-lua.h')
-rw-r--r-- | ctl-lib/ctl-lua.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/ctl-lib/ctl-lua.h b/ctl-lib/ctl-lua.h index deff9ee..aa03709 100644 --- a/ctl-lib/ctl-lua.h +++ b/ctl-lib/ctl-lua.h @@ -48,8 +48,7 @@ extern "C" { #include "ctl-timer.h" -PUBLIC int LuaLibInit (); - +int LuaLibInit (); typedef enum { LUA_DOCALL, @@ -58,15 +57,14 @@ typedef enum { } LuaDoActionT; extern const char *lua_utils; -PUBLIC int luaLoadScript(const char *luaScriptPath); -PUBLIC int LuaConfigLoad (AFB_ApiT apiHandle); -PUBLIC int LuaConfigExec(AFB_ApiT apiHandle, const char * prefix); -PUBLIC void LuaL2cNewLib(luaL_Reg *l2cFunc, int count, const char *prefix); -PUBLIC int Lua2cWrapper(void* luaHandle, char *funcname, Lua2cFunctionT callback); -PUBLIC int LuaCallFunc (CtlSourceT *source, CtlActionT *action, json_object *queryJ) ; -PUBLIC void ctlapi_lua_docall (afb_req request); -PUBLIC void ctlapi_lua_dostring (afb_req request); -PUBLIC void ctlapi_lua_doscript (afb_req request); +int LuaLoadScript(const char *luaScriptPath); +int LuaConfigLoad (AFB_ApiT apiHandle); +void LuaL2cNewLib(luaL_Reg *l2cFunc, int count, const char *prefix); +int Lua2cWrapper(void* luaHandle, char *funcname, Lua2cFunctionT callback); +int LuaCallFunc (CtlSourceT *source, CtlActionT *action, json_object *queryJ) ; +void ctlapi_lua_docall (afb_req request); +void ctlapi_lua_dostring (afb_req request); +void ctlapi_lua_doscript (afb_req request); #ifdef __cplusplus } |