summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-09-26 12:17:55 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-12-14 11:00:25 +0100
commitbbb4351eab7476be9a93f0248860ac0d1574d8a6 (patch)
tree1c5624454be5fc37828341b20de2f2e79fc90013 /plugins
parent1480ff8d68ee4b923596d8178e37eba7b9202a30 (diff)
Make calling lua2c function from lua works
Change-Id: I56d78a3fe567d1f7a6c675f6a56473f96d325c85 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/lua2c-interface.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/lua2c-interface.c b/plugins/lua2c-interface.c
index 0bff8d6..1da8f17 100644
--- a/plugins/lua2c-interface.c
+++ b/plugins/lua2c-interface.c
@@ -33,11 +33,11 @@ CTLP_REGISTER("lua2c-interface");
typedef struct {
struct pluginCBT* pluginHandle;
-} lowCANCtxT;
+} CtxT;
// Call at initialisation time
CTLP_ONLOAD(plugin, handle) {
- lowCANCtxT *pluginCtx= (lowCANCtxT*)calloc (1, sizeof(lowCANCtxT));
+ CtxT *pluginCtx= (CtxT*)calloc (1, sizeof(CtxT));
pluginCtx->pluginHandle = (struct pluginCBT*)handle;
AFB_NOTICE ("Low-can plugin: label='%s' version='%s' info='%s'",
@@ -48,8 +48,9 @@ CTLP_ONLOAD(plugin, handle) {
return (void*)pluginCtx;
}
-CTLP_LUA2C (_setsignalValue, label, argsJ)
+CTLP_LUA2C (setSignalValueWrap, label, argsJ)
{
AFB_NOTICE("label: %s, argsJ: %s", label, json_object_to_json_string(argsJ));
+
return 0;
}