summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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>
2017-12-14Match Widget config file value from config.cmakeRomain Forlot1-0/+0
Change-Id: I680ab31fa4ae627741f5b96b9c44059bc19426a3 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Migrate to ctl-utilities libraryRomain Forlot19-130/+208
New version of controller as a library. Loading additionnals files from each sections. Change-Id: I4f5e78d0baf9650cb8d1cc1da26f8e1fd73b792c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Update .gitignoreRomain Forlot1-0/+1
Change-Id: I8d6b9beb35764e2c95e3cd7ad16c186a0c658c00 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Update app-template & use new JSON schema for confRomain Forlot6-51/+65
Change-Id: I6e920ee08ea38f53f5dcc58d58f89cf1ace22f42 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Remove external 3rdparty libraryRomain Forlot112-36829/+0
Downloaded at build time. Change-Id: If15e9bcb4cc7d09cec1837a0ad62e4a3c6beb4e1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14LUA lib and bin embedded in projectRomain Forlot137-88/+37125
Change-Id: I1a61b49f55e4daa305800e754a14b6041aa81b34 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2017-12-14Add default receive actionRomain Forlot2-1/+71
Change-Id: Icc23f135d4e65d6de131a60b978677e549738d78 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>