From 9272e2857f9d77a2a3052592f25ecdd524497bd5 Mon Sep 17 00:00:00 2001 From: Fulup Ar Foll Date: Fri, 25 Aug 2017 01:11:18 +0200 Subject: Fulup Error Message at Lua level --- ctl-binding/ctl-lua.c | 4 +- nbproject/configurations.xml | 93 ++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 88 insertions(+), 9 deletions(-) diff --git a/ctl-binding/ctl-lua.c b/ctl-binding/ctl-lua.c index 8d5a87e..d737026 100644 --- a/ctl-binding/ctl-lua.c +++ b/ctl-binding/ctl-lua.c @@ -460,7 +460,7 @@ STATIC int LuaAfbService(lua_State* luaState) { // note: argument start at 2 because of AFB: table if (count <5 || !lua_isstring(luaState, 2) || !lua_isstring(luaState, 3) || !lua_istable(luaState, 4) || !lua_isstring(luaState, 5)) { - lua_pushliteral (luaState, "LuaAfbServiceCall-Syntax is AFB:service_call (api, verb, query, callback, handle ...."); + lua_pushliteral (luaState, "ERROR: syntax AFB:service(api, verb, {[Lua Table]})"); goto OnErrorExit; } @@ -489,7 +489,7 @@ STATIC int LuaAfbServiceSync(lua_State* luaState) { // note: argument start at 2 because of AFB: table if (count <3 || !lua_isstring(luaState, 2) || !lua_isstring(luaState, 3) || !lua_istable(luaState, 4)) { - lua_pushliteral (luaState, "LuaAfbServiceSync-Syntax is error,data=AFB:service_call (api, verb, query)"); + lua_pushliteral (luaState, "ERROR: syntax AFB:servsync(api, verb, {[Lua Table]})"); goto OnErrorExit; } diff --git a/nbproject/configurations.xml b/nbproject/configurations.xml index a05bf8d..a3d914b 100644 --- a/nbproject/configurations.xml +++ b/nbproject/configurations.xml @@ -30,6 +30,12 @@ feature_tests.cxx + + ctl-binding.c + ctl-dispatch.c + ctl-lua.c + ctl-timer.c + ctl-plugin-sample.c @@ -175,13 +181,26 @@ - + - ../../../opt/include/afb - afb-utilities /usr/include/json-c + ../../../opt/include + /usr/include/p11-kit-1 + /usr/include/lua5.3 + afb-utilities build/afb-utilities + + CONTROL_CONFIG_PATH="/home/fulup/Workspace/AGL-AppFW/afb-controller/conf.d/project/json.d:/home/fulup/opt/afb-controller/json.d" + CONTROL_CONFIG_POST="control" + CONTROL_CONFIG_PRE="onload" + CONTROL_DOSCRIPT_PRE="doscript" + CONTROL_MAXPATH_LEN=255 + CONTROL_ONLOAD_PROFILE="onload-default" + CONTROL_PLUGIN_PATH="/home/fulup/Workspace/AGL-AppFW/afb-controller/build:/home/fulup/opt/afb-controller/lib/controller-plugins:/usr/lib/afb/controller-plugins/ctlplug" + CTL_PLUGIN_MAGIC=2468013579 + NATIVE_LINUX + @@ -207,8 +226,24 @@ + + + + + + + + + + + + + + + + - + @@ -218,16 +253,60 @@ + + + + /usr/include/json-c + ../../../opt/include + /usr/include/p11-kit-1 + /usr/include/lua5.3 + ctl-binding + afb-utilities + build/ctl-binding + + + CONTROL_CONFIG_PATH="/home/fulup/Workspace/AGL-AppFW/afb-controller/conf.d/project/json.d:/home/fulup/opt/afb-controller/json.d" + CONTROL_CONFIG_POST="control" + CONTROL_CONFIG_PRE="onload" + CONTROL_DOSCRIPT_PRE="doscript" + CONTROL_LUA_EVENT="luaevt" + CONTROL_LUA_PATH="/home/fulup/Workspace/AGL-AppFW/afb-controller/conf.d/project/lua.d:/home/fulup/opt/controller-plugins/ctl-lua.d" + CONTROL_MAXPATH_LEN=255 + CONTROL_ONLOAD_PROFILE="onload-default" + CONTROL_PLUGIN_PATH="/home/fulup/Workspace/AGL-AppFW/afb-controller/build:/home/fulup/opt/afb-controller/lib/controller-plugins:/usr/lib/afb/controller-plugins/ctlplug" + CONTROL_SUPPORT_LUA + CTL_PLUGIN_MAGIC=2468013579 + NATIVE_LINUX + afb_controller_EXPORTS + + + - ../../../opt/include/afb - ctl-plugin /usr/include/json-c + ../../../opt/include + /usr/include/p11-kit-1 /usr/include/lua5.3 - afb-source + ctl-binding + afb-utilities build/ctl-plugin + + CONTROL_CONFIG_PATH="/home/fulup/Workspace/AGL-AppFW/afb-controller/conf.d/project/json.d:/home/fulup/opt/afb-controller/json.d" + CONTROL_CONFIG_POST="control" + CONTROL_CONFIG_PRE="onload" + CONTROL_DOSCRIPT_PRE="doscript" + CONTROL_LUA_EVENT="luaevt" + CONTROL_LUA_PATH="/home/fulup/Workspace/AGL-AppFW/afb-controller/conf.d/project/lua.d:/home/fulup/opt/controller-plugins/ctl-lua.d" + CONTROL_MAXPATH_LEN=255 + CONTROL_ONLOAD_PROFILE="onload-default" + CONTROL_PLUGIN_PATH="/home/fulup/Workspace/AGL-AppFW/afb-controller/build:/home/fulup/opt/afb-controller/lib/controller-plugins:/usr/lib/afb/controller-plugins/ctlplug" + CONTROL_SUPPORT_LUA + CTL_PLUGIN_MAGIC=2468013579 + NATIVE_LINUX + audio_plugin_sample_EXPORTS + -- cgit 1.2.3-korg