summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-12-04 17:24:04 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-12-14 11:00:49 +0100
commit55e4e3b31f2cbec776eb89c0b780f895fa0f0b86 (patch)
tree5699221bfede9aebf57e08a53fa84b38fac13e4d /plugins
parent1cf6b5e10983716b4fd222db559fe7161397e285 (diff)
Disable plugin initialization no more needed
Context is computed before calling action and accessible through source parameter. Change-Id: Ia1b2c59b7ad4e4e3f60ff193307201dbc6d388ba Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/builtin.cpp4
-rw-r--r--plugins/gps.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/builtin.cpp b/plugins/builtin.cpp
index 9fa7823..0989935 100644
--- a/plugins/builtin.cpp
+++ b/plugins/builtin.cpp
@@ -34,7 +34,7 @@ CTLP_LUA_REGISTER("builtin");
static struct signalCBT* pluginCtx = NULL;
// Call at initialisation time
-CTLP_ONLOAD(plugin, handle) {
+/*CTLP_ONLOAD(plugin, handle) {
pluginCtx = (struct signalCBT*)calloc (1, sizeof(struct signalCBT));
pluginCtx = (struct signalCBT*)handle;
@@ -43,7 +43,7 @@ CTLP_ONLOAD(plugin, handle) {
plugin->info);
return (void*)pluginCtx;
-}
+}*/
CTLP_CAPI (defaultOnReceived, source, argsJ, eventJ)
{
diff --git a/plugins/gps.c b/plugins/gps.c
index 2aab040..a4dfdba 100644
--- a/plugins/gps.c
+++ b/plugins/gps.c
@@ -31,10 +31,10 @@
CTLP_LUA_REGISTER("gps");
// Call at initialisation time
-CTLP_ONLOAD(plugin, api) {
+/*CTLP_ONLOAD(plugin, api) {
AFB_NOTICE ("GPS plugin: uid='%s' 'info='%s'", plugin->uid, plugin->info);
return api;
-}
+}*/
CTLP_CAPI (subscribeToLow, source, argsJ, eventJ) {
json_object* subscribeArgsJ = NULL, *responseJ = NULL;