diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-09-26 18:36:47 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-14 11:00:25 +0100 |
commit | c22ad857bcd2f567d22f3239d91fa65720718713 (patch) | |
tree | 165407be42745a190672ff64fe27503074380735 /controller/ctl-plugin.c | |
parent | 7f5a4ef3053eaac5c3f936b6294087d3d2b72c38 (diff) |
lua2c completely operationnal
- Retrieve args from lua call correctly
- Correctly push and set function pointer into plugin
symbols
Change-Id: I12d03e1101c458a042887a67a35a08082bd98f4c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'controller/ctl-plugin.c')
-rw-r--r-- | controller/ctl-plugin.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/controller/ctl-plugin.c b/controller/ctl-plugin.c index 1be97d4..9e4e419 100644 --- a/controller/ctl-plugin.c +++ b/controller/ctl-plugin.c @@ -65,11 +65,10 @@ int PluginGetCB (CtlActionT *action , json_object *callbackJ) { OnErrorExit: return 1; - } // Wrapper to Lua2c plugin command add context and delegate to LuaWrapper -STATIC int DispatchOneL2c(lua_State* luaState, char *funcname, Lua2cFunctionT callback) { +STATIC int DispatchOneL2c(lua_State* luaState, const char *funcname, Lua2cFunctionT callback) { #ifndef CONTROL_SUPPORT_LUA AFB_ERROR("CTL-ONE-L2C: LUA support not selected (cf:CONTROL_SUPPORT_LUA) in config.cmake"); return 1; |