From c22ad857bcd2f567d22f3239d91fa65720718713 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 26 Sep 2017 18:36:47 +0200 Subject: 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 --- controller/ctl-plugin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'controller/ctl-plugin.c') 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; -- cgit 1.2.3-korg