summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorManuel Bachmann <manuel.bachmann@iot.bzh>2015-12-22 16:31:39 +0100
committerManuel Bachmann <manuel.bachmann@iot.bzh>2015-12-22 16:34:08 +0100
commit02492357cce066201a11993255120119c2703af1 (patch)
treec5d4d70a3e8ebd0596a72cc807a94fc6f4025496 /include
parent39a0ef5d1609e01f71039f9095c14cf6f3ca1a93 (diff)
Improve plugin logic, pass plugins count to session
We now pre-reserve for 20 plugins (arbitrary for now, we downsize if necessary). Plugins count is now passed to the session in the "pluginCount" variable. Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
Diffstat (limited to 'include')
-rw-r--r--include/local-def.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/local-def.h b/include/local-def.h
index 68c42867..22a3608b 100644
--- a/include/local-def.h
+++ b/include/local-def.h
@@ -261,6 +261,7 @@ typedef struct {
int fakemod; // respond to GET/POST request without interacting with sndboard
int forceexit; // when autoconfig from script force exit before starting server
AFB_plugin **plugins; // pointer to REST/API plugins
+ int pluginCount; // loaded plugins count
magic_t magic; // Mime type file magic lib
sigjmp_buf restartCkpt; // context save for restart set/longjmp
} AFB_session;