Age | Commit message (Collapse) | Author | Files | Lines |
|
Update basic configurations files with the latest controller key used.
There were update not followed since a rework a how an action is load
from a configuration file which does not use anymore 2 key 'uri' + 'function'
but only one 'action'.
Change-Id: I455f69064bd91dd3b845e83d0904aca1c11cacb8
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Bug-AGL SPEC-1682
Change-Id: I1578d1e71d66813ed45dfac80b2fceee7c012150
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
The feature "urn:AGL:widget:required-binding" is now
preferred to the feature "urn:AGL:widget:required-api"
for requiring a local binding.
Bug-AGL: SPEC-1800
Change-Id: I0a257cf66b11b944cfce90c270827da1413c8eed
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
|
|
And remove unnecessary dependency upon libmicrohttpd
Change-Id: I10de18065517a6033d75519ced16a4ee04518851
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Here, assuming the absolute path leads to a non existent file
then only take the file name and do a research in the default
search path given by environment var or pre-processor defined
variables.
Change-Id: Id57428141be908cda65b07f66ca59568708d3608
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Submodule ctl-utilities 02bbf59..d6eb01e:
> Change loading configuration object behavior
> app-controller-submodule doc: Changed doc to fit new format.
> Fix: compatibility with binder FF.RC4
Change-Id: I21efecc6de8e8db91827b83cdf26ab62cb52d1ce
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
fix multiples errors, rename txc into txc-binding
Change-Id: I9cd32cf157e407d98293bc869ed08cc93518a555
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
|
|
Change-Id: I9b4da627485ad16bc4ed925e97b3a8a320dd7238
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Submodule afb-helpers a37225f..f0ce5b6:
> wrap-json: Fix duplicated lines in header file
> Add '@' as binder middle name separator.
> Enhance 'wrap_json_clone_depth' description
Submodule conf.d/app-templates f0b24b0..52ae181:
> Fix: typo
Submodule ctl-utilities a58d83b..bdf1a6b:
> ctl-lua: Fixed memory corruption
> Migration to v3
> Adds v3 function to get binding settings
> New function returning the binding root directory
> Change the default GLOB pattern
> Fix wrong computed length
> Add path to the installed widget path.
> Controller: Converted README to a gitbook version.
> New defaults useful functions on lua table
> More precise log message when loading a Lua file
> Fix: wrong legacy function signature
> Split loading JSON controller file.
> Release arguments once C function returned.
Change-Id: I9d7b7dee7e0e3473734ff869080a4e672ba3f951
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Wrote a couple of basic API tests
Setup mock apis for the test binding
Added script to launch tests on native Linux machines
Change-Id: I606752e7b46cb2afdc10f3319a24ef15675faa3b
Signed-off-by: Clément Malléjac <clementmallejac@gmail.com>
|
|
Update config.cmake file with app-templates improvments:
- Now versioning is handled by app-templates based on gerrit tags
- Binding version set up in config.cmake rather than in code.
- Update variables name for build type and install prefix.
Submodule afb-helpers 43ec971..a37225f:
> Fix: use of GetBindingDirPath without dynapi
> Retrieve directory list from environment variables
> Remove the file .gitmodules
> Remove unnecessary 'AFB_DEBUG' redefinition
> Use binding version to handle dynapi
> At search, use the prefix parameter as a prefix
> Remove deprecated use of cmake/Qt macro
> Rename method to avoid conflict with Qt's one
Submodule conf.d/app-templates aa68dbd..f94e45e:
> Align sample on actual default compile options
> Add support to binding version 3.
> Warning if not using wgtpkg-pack to make a widget
> Rework CMAKE_INSTALL_PREFIX and INSTALL_PREFIX var
> Be able to overwrite BUILD_TYPE using CLI
> Use CACHE variable for other common CMAKE variable
> Fix:: wrong wgt using RELEASE BUILD TYPE
> Fix: SYSROOT location detection... Wrong test.
> Change the default debug compilation options.
> Clearer coverage compilation options configuration
Submodule ctl-utilities 1ff524b..ff14c58:
> Fix : typo introduced in a previous commit.
> Use prefix variable to find controller's plugins
> Use binding version to set controller definitions
> ctl-lua: typo fix
> asynchronism for test: LockWait added
> Fix: plugin api assignement order
> Execute ConfigExec only if section is existing
> Always set the api member even if NULL.
> Ability to add a plugin after the initial load
> Be able to dispatch required api at the wanted time
Depends-On : I135a723d21d70b8c54f4cab1c534210757318ed0
Change-Id: I90938f53dd1f606b3aa39a549e618c0fe413870c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Submodule conf.d/app-templates 6e1a3c3..aa68dbd:
> Don't overwrite the autobuild script if it exists
> Disable the in-tree build method.
> Detect Yocto as OS distribution
> Fix: wrong compile options added
> Fallback using zip format if no wgtpkg-pack found
> 02-variables.cmake: Avoid checking CXX version if not required
> config.cmake.sample: Remove dependency to libsystemd
> config.cmake.sample: Remove dependency to libmicrohttpd
> Added -D_FORTIFY_SOURCE=2 to CFLAGS
> start-on-target: uses RSYNC_PREFIX path for config
> Fixed spelling.
> Improve OS detection
> Fix: OS detection
> Launch from workdir
> Change closing that could fix native debugging
Submodule ctl-utilities 0129510...1ff524b:
> Change LUA package path at LUA interpreter load
> Don't load two times a plugin even for LUA
> Fixed hidden bound variable (apiHandle)
> Fixed null value when push Lua arguments
> Adjust to compile with incoming bindings v3
> Remove declaration to not existing functions
> Add 2 lua utilities function
> Update README.md for new metadata keys.
> Fix a compilation issue due to modif of AFB_ReqSuccess
> README:md: update README accordingly to new json scheme.
> Fixed crash due to call to json_object_put
> Fix segfault when printing long message from lua
> Fixed spelling of AFB_ReqSuccess
> Remove an unnecessary variable
> Make parsing of action loading non blocking
> Use an external file for app fw functions link
> Use macro to test request validity
> Fixed build warnings with gcc >= 7.3
> Increase lua script max message size
> Prevent lost of config file path when searching
> Correct way that api actions are handled in controller
> Handle more metadata in the controller.
> Add possibility to set prefix to NULL in CtlConfigScan
> Fixed compilation warnings with gcc-7.2.0
> Add an external field to CtlConfigT
> Make action item from a LUA action mandatory
> Handle no prefix given
> Good usage of strncat and strncpy
> Update to the new JSON syntax
> Detect failure at OnLoad action calls
> Improve reliability and function calls
> Correctly release request JSON object
> Add AFB macros
> Don't use assert in controller.
> Change lua2c JSON syntax.
> Search for Event section
> Fix: changes key name.
> Fix: arguments pointer NULL check
> Fix wrong error message.
> Simplify action definition
> Fix: Dyn API Action loading procedure
> Use new version of function GetBindingDirPath
> Format
> Merge changes from topic 'sandbox/claneys/wip'
> Upgrade config schema
> Fix: callback execution condition
< Format
< Fix: callback execution condition
< New action loading function.
< Upgrade config schema
Adapt json config file to new syntax
Fix: prefix now add the "-" so it'isn't needed to add it in the
prefix at search (signal-composer.cpp)
Fix: calling a api verb without json_object fails because
of config arguments not retrieved. (sources.cpp)
Change-Id: I48c1bca9fbac485e6a34b4645e683d9bdb1cbf2b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
We use only one function of two from the plugin which could
be called from the LUA script to be able to set a signal
value from a LUA callback.
Change-Id: Ic7a0fcd3d8c4c2370828c1d09fff9ed88a0dc15b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
By default Efence isn't enable. You now have to
specifically set it up if you want to use the Efence
library
Change-Id: I7803636bed08fc248f820df2db64310d96d57d8e
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Some function that are now included in the controller submodule
do not need to be in the composer as well. Also initialize
sources and signals in the same way .
JSON configuration needs to be updated to fit this changes
Change-Id: I2043791e7ee80f8350f33ed15bdf9980c0773b82
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Update submodules
Change-Id: I7f3a8e0059ce05e6bf46315d1de80c25cb87b2cf
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
1 for normal multi low level sources
1 for TXC-demo
Future goal will be to merge them
Also reorganize data resources files
Bump app-template:
Submodule conf.d/app-templates dd0cec7..30e78a5:
> Adding cmake file at the root directory
> Adds commit hash to the version.
> Change default sample settings.
Change-Id: I31838723da58fc33b25bc7cd5f42396a1805e34d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: Id064fd0f91b5dde72bf1654abce3a8059b8ee191
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Generate headers from afb-genskel with CPP options which
generate correctly the header for a CPP project.
Change-Id: Ibb64de25ca510a82bc91ba938fc221d9b820e175
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: Ic99190a45c831547b2ec1a7425a6f7cc38d7ed18
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: Ied46d7f7784b478c75758d15f018a7ff6d3533c2
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Correctly grab lua script using simpler prefix
Correctly free Composer object's members
Adding default binding source as required-apis
Change-Id: I91d34b636286e79c7bcc27f8ba2730897ec5f424
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
and fix wrong path to binding
Change-Id: I188b5664de3374709853cf43eadd4e28e500373a
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
- 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>
|
|
Now relative to afb-daemon workdir.
Change-Id: Ic60c7d332d1e18396b85881683a7ada4bfbf4ca2
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
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>
|
|
Change-Id: Ide4b90ecbc7763d48a3949864f298882acdce57b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Adjust to the new controller behavior lua2c functions calls
Change-Id: I52d385101d5205a2dd2c996810feccb1f00c20c7
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: I36d675ba7c38ce883a021da1a82dfbe8b077a39f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: I3d540dd97367109416bd35ff337383178a79d6b4
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: I85f0299c3612fd8cfa39241db05d76c7adbbc86d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: I9e1e5cf7315d54531e010c352187da271b1dee5c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: Ifa73631cc80359027740e99ef8d7c27cb4867fc7
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: I5d7b3b8b9ac17c15143a20111dd2bcb3c44ab3bf
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
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>
|
|
Change-Id: Id1d9ae7d6748e37276c7320e58a443a747c155f0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: Idb761fdb3c8db7a9455078c90106ce5d55726bf3
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: Ib6068ef81151bc61923ad6ec54048028033ca4af
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: Ieb4b5978b1c6161a924b43471da987ccbc188e1e
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Add build dir as Path to search for plugins and lua
Change-Id: I918f25dceeaf5ba4b9729c8d80fd40b936d9c1d6
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: I8cf780dcf4381f3173c185887867e1c0fdb1785b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: Ief61fa7cf4e9464a497d79197cad043a160e983f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: Ib3d9b65a3ddcc1f986321e4d5ada629bb5fccbcf
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: I680ab31fa4ae627741f5b96b9c44059bc19426a3
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
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>
|
|
Change-Id: I6e920ee08ea38f53f5dcc58d58f89cf1ace22f42
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: I1a61b49f55e4daa305800e754a14b6041aa81b34
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Be able to tweak retention value for each signal in seconds
Change-Id: I1cabe48a2660cdeb2e9b32b277e7c819c6b49bd9
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
- Retrieve args from lua call correctly
- Correctly push and set function pointer into plugin
symbols
Change-Id: I12d03e1101c458a042887a67a35a08082bd98f4c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: I2e991195e08e876497d75d73a55af6899c0aabe4
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|