summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-12-19Get builtin plugin as a normal pluginRomain Forlot5-49/+16
- Back in normal configuration file - Remove builtin special callback as it is just a plugin after all - Rename main configuration files to get it works on a target board. Change-Id: I69165c47e5e58eb519e727cfdd83ee628d90abba Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-19Update gitignore, minor fixRomain Forlot2-1/+1
Change-Id: I7f059cb6566461a96765be78841d97e9b70beee3 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-18Make public ConfigSearch functionRomain Forlot1-0/+0
Change-Id: If8cb4237486333e287190a22b92aeec9c5d09a6d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-18More security to add new signals/source at runtimeRomain Forlot4-34/+61
Also renamed loadConf to addObjects to avoid confusion with loadConf at init time. Improve file research if fullpath not procided by searching in the CONTROL_CONFIG_PATH. Change-Id: I8e541ff7437f0378bcdc7215ff9f391dcce6db9f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-18Update documentationRomain Forlot8-12/+39
Change-Id: I82edfc5111805cf5e2affad1a6366d1144006fbf Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-18Fix segfault when no l2c functions definedRomain Forlot1-0/+0
Change-Id: Ie1325c32ed085823835cc2f139dcb452ffdb27a0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-18Fix: absolute non significant path to pluginsRomain Forlot1-2/+2
Now relative to afb-daemon workdir. Change-Id: Ic60c7d332d1e18396b85881683a7ada4bfbf4ca2 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-18Several small fixes and improvements.Romain Forlot5-25/+15
Cleaning Make some additionnals test avoiding segfault, Filling opitonnal response object to avoid warning Wrong plugins type register macro called Change-Id: I012cc3ddc5f89b75dbc46c3ea535717141823884 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-15Fix CTL_PLUGIN_MAGIC outside of long int rangeRomain Forlot1-1/+1
Change-Id: Ide4b90ecbc7763d48a3949864f298882acdce57b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-15Get back on track l2c functionsRomain Forlot4-10/+8
Adjust to the new controller behavior lua2c functions calls Change-Id: I52d385101d5205a2dd2c996810feccb1f00c20c7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Fixing afb function call from LUA and cleaningRomain Forlot7-158/+26
Change-Id: I36d675ba7c38ce883a021da1a82dfbe8b077a39f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Fix warning compile about uninitialized variableRomain Forlot1-0/+0
Change-Id: I15076f9b0a564ed2cd8b1fbce14353add115c215 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Dirty trick to avoid failure at buildRomain Forlot1-0/+4
Change-Id: I4b2dc928f8b61e8e25145b88b292795c9fd8eea7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Fix wrong timestamp type use to retrieve value.Romain Forlot1-1/+1
Change-Id: I884a7957325a57a97dd562d620e11167f452edf2 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Update documentationRomain Forlot8-26/+69
Change-Id: Ie7c6fc98b450e0f856378b615ded2a586f02a7ad Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Use value instead of pointer for a memberRomain Forlot2-25/+25
no reason to keep it as pointer, and simpler to initiaze it at construction time. Change-Id: I0aee4483c834e66651d80998de81c99799451ff5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Improve subscription processRomain Forlot3-15/+47
Unsubscription remove asked signals from client session then when no more signals are requested by the client unsubscribe from event handle. Correctly initialize members to by correctly evaluated after Change-Id: Icabcb5a2446c62cab4eea9bf807613b719324ea0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Change remote repository for afb-helpers to gerritRomain Forlot2-3/+3
Change-Id: I712305849487cf21388292df9b261cdbe0917acb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Update all submodulesRomain Forlot3-0/+0
Change-Id: I3d540dd97367109416bd35ff337383178a79d6b4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Avoid create duplicate source entries.Romain Forlot3-6/+34
Change-Id: If50a439634382fa6d1c856b5c3fb29db4eb93a31 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Check key exists before loading JSON fileRomain Forlot1-18/+25
Change-Id: I99d84fb56b01896caf6daa26ca50896f770ff509 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Fix memory leaks relative to json_objectRomain Forlot4-3/+20
Change-Id: I0cff16c1d44b9363522fde7c6c9b2bd10ba376ac Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Load additionnals object at runtimeRomain Forlot6-52/+122
Later integrated in controller submodule Change-Id: I7d5c7431e60fc16cc2053747674fe4f14efd6a14 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Hold all contexts (plugin & source) in signalCtx_Romain Forlot5-47/+77
Keeping persistence between call data are kept in that member also subscription Action now use getSignals_ context and no more the signal one, this is more accurate and simples Change-Id: Idd7c56ba30f1daa9eaf9b99a7261d58189ef0bb2 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Useless tests against uninitialized valueRomain Forlot1-4/+2
Values has to be set. Change-Id: Ia8fcd23e68b79de5cd0316c81341ac41643750b5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Fix LUA path not setRomain Forlot1-0/+1
Change-Id: I85f0299c3612fd8cfa39241db05d76c7adbbc86d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Avoid warning about deleting void* variableRomain Forlot2-1/+1
And replace free calls by delete because operator new was used. Change-Id: Ifb0d301b0a09dd83e3ad574c97e02bd8af072ae6 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh> # Conflicts: # signal-composer-binding/signal-composer.cpp
2017-12-14Avoid warning about deleting void* variableRomain Forlot3-3/+3
And replace free calls by delete because operator new was used. Change-Id: Ifb0d301b0a09dd83e3ad574c97e02bd8af072ae6 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Rename lua scripts to comply api name.Romain Forlot6-1/+1
Change-Id: I9e1e5cf7315d54531e010c352187da271b1dee5c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Update submodulesRomain Forlot3-0/+0
Change-Id: Ifa73631cc80359027740e99ef8d7c27cb4867fc7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Avoid mem leack, overwriting, initializing variable.Romain Forlot3-8/+15
Fix a memory squashing bug that segfault binder when loading directory searching for binding. Change-Id: Iedc6747d8ce49e7ff5fc2013bb7d03b5b553b89c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Disable plugin initialization no more neededRomain Forlot2-4/+4
Context is computed before calling action and accessible through source parameter. Change-Id: Ia1b2c59b7ad4e4e3f60ff193307201dbc6d388ba Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Disable Efence tool use at build.Romain Forlot1-1/+1
Change-Id: I5d7b3b8b9ac17c15143a20111dd2bcb3c44ab3bf Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Convert configuration to comply latest schemaRomain Forlot1-4/+2
Latest JSON schema available here: http://iot.bzh/download/public/schema/json/signal-composer-schema.json Change-Id: I6be3c8fc5450009eac334a5cdb84d10ead308a4f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Remove old controller submoduleRomain Forlot11-2270/+0
Change-Id: I8768bc2663884b8043ad9565e8cbb62c4ba78070 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14SpellingSebastien D1-7/+7
Change-Id: Ia19a588532226125d218c92464526297480c098d Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2017-12-14Don't stop parsing signal even if one malformationRomain Forlot1-4/+3
Change-Id: I266dd03cde2c712ab1b2e713f0c57a89063f72e4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Controller object has changed: Fix building actionRomain Forlot2-36/+91
Change-Id: I055d1ad1f9f1305009f4237e56566784e2ecdcfb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Include geolocalisation signals configurationRomain Forlot1-1/+1
Change-Id: Id1d9ae7d6748e37276c7320e58a443a747c155f0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Update and use latest ctl-utilities.Romain Forlot6-69/+44
Controller will now handle loading additional files from section. Context retrieving change a bit, now we have source context and plugin context. Update json unpacking and packing. Cleaning, format. Change-Id: Ie7a4721f6b703796a0dac1a236922427f4755dc5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Migrate submodule to gerrit and update themRomain Forlot3-2/+2
Change-Id: Idb761fdb3c8db7a9455078c90106ce5d55726bf3 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Typo, cleaning, formatRomain Forlot2-1/+2
Change-Id: Ibc0457d7395d336c9716e3ed7ca51b71c450f0db Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Update JSON obj to fit new controller libRomain Forlot2-3/+3
Change-Id: Ib6068ef81151bc61923ad6ec54048028033ca4af Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Rename main configuration fileRomain Forlot1-0/+0
Change-Id: Ieb4b5978b1c6161a924b43471da987ccbc188e1e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Cleaning, typo and stuffRomain Forlot3-16/+15
Change-Id: Ifd6ac589b86e44d43b1e70465c8eba0cfb487c19 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Fix: LUA support is CMake var not compile optionRomain Forlot1-3/+3
Add build dir as Path to search for plugins and lua Change-Id: I918f25dceeaf5ba4b9729c8d80fd40b936d9c1d6 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Added version check to afb-daemon pkg requisiteRomain Forlot1-1/+1
Change-Id: I8cf780dcf4381f3173c185887867e1c0fdb1785b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Fix: wrong path to the binding fileRomain Forlot1-1/+1
Change-Id: Ief61fa7cf4e9464a497d79197cad043a160e983f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Update git modulesRomain Forlot1-0/+0
Change-Id: I2deaa7debe0529ac7d0a769d00b6064ba92bded3 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Upgrade app-templatesRomain Forlot1-0/+0
Change-Id: Ib3d9b65a3ddcc1f986321e4d5ada629bb5fccbcf Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>