summaryrefslogtreecommitdiffstats
@media only all and (prefers-color-scheme: dark) { .highlight .hll { background-color: #49483e } .highlight .c { color: #75715e } /* Comment */ .highlight .err { color: #960050; background-color: #1e0010 } /* Error */ .highlight .k { color: #66d9ef } /* Keyword */ .highlight .l { color: #ae81ff } /* Literal */ .highlight .n { color: #f8f8f2 } /* Name */ .highlight .o { color: #f92672 } /* Operator */ .highlight .p { color: #f8f8f2 } /* Punctuation */ .highlight .ch { color: #75715e } /* Comment.Hashbang */ .highlight .cm { color: #75715e } /* Comment.Multiline */ .highlight .cp { color: #75715e } /* Comment.Preproc */ .highlight .cpf { color: #75715e } /* Comment.PreprocFile */
Jens Bocklage <jens_bocklage@mentor.com>
Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Zheng Wenlong <wenlong_zheng@nexty-ele.com>
/span> #endif // default event name used by LUA #ifndef CONTROL_LUA_EVENT #define CONTROL_LUA_EVENT "luaevt" #endif // standard lua include file #ifdef CONTROL_SUPPORT_LUA #include "lua.h" #include "lauxlib.h" #include "lualib.h" #endif #include <afb-timer.h> int LuaLibInit (); typedef enum { LUA_DOCALL, LUA_DOSTRING, LUA_DOSCRIPT, } LuaDoActionT; extern const char *lua_utils; extern int LuaLoadScript(afb_api_t apiHandle, const char *luaScriptPath); extern int LuaConfigLoad (afb_api_t apiHandle, const char *prefix); extern void LuaL2cNewLib(luaL_Reg *l2cFunc, int count, const char *prefix); extern int Lua2cWrapper(void* luaHandle, char *funcname, Lua2cFunctionT callback); extern int LuaCallFunc (CtlSourceT *source, CtlActionT *action, json_object *queryJ) ; extern int LuaConfigExec(afb_api_t apiHandle); #ifdef __cplusplus } #endif #endif