summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-08-18Migration to binding V3marlin_12.90.0marlin/12.90.0lamprey_11.92.0lamprey_11.91.0lamprey/11.92.0lamprey/11.91.0koi_10.93.0koi_10.92.0koi_10.91.0koi/10.93.0koi/10.92.0koi/10.91.0jellyfish_9.99.4jellyfish_9.99.3jellyfish/9.99.4jellyfish/9.99.39.99.49.99.312.90.011.92.011.91.010.93.010.92.010.91.0Li, Xiaoming2-51/+51
Bug-AGL: SPEC-2745 Change-Id: I83c3a86a55f5e729e6cc1a4bb437edc300cccfad Signed-off-by: Li, Xiaoming <lixm.fnst@cn.fujitsu.com>
2020-06-09Update autobuild scriptsjellyfish_9.99.2jellyfish_9.99.1jellyfish/9.99.2jellyfish/9.99.19.99.29.99.1Scott Murray2-204/+154
Update autobuild scripts with reworked version that fixes building outside of the source tree. Bug-AGL: SPEC-2049, SPEC-3300 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: If5727a4ad0f1630e25f3263ef9de7a80b03791c3
2020-02-18Update autobuild script to create new targetsFrederic Marec2-26/+174
Update autobuild script to create multiple widget target debug, coverage and all Bug-AGL: SPEC-2049 Signed-off-by: Frederic Marec <frederic.marec@iot.bzh> Change-Id: I358c845a02821f5461d2e9f0443f5f87a2c831e3
2020-02-06license: declare license on source filesClément Bénier4-339/+48
BUG-AGL: SPEC-3164 Change-Id: I93977106ccdcd12f5258f832c1f2bc2b9a8243e6 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2019-11-14fix(iiodevices-binding.c): use afb_event_is_valid to check eventicefish_8.99.5icefish_8.99.4icefish_8.99.3icefish_8.99.2icefish_8.99.1icefish/8.99.5icefish/8.99.4icefish/8.99.3icefish/8.99.2icefish/8.99.18.99.58.99.48.99.38.99.28.99.1Li Xiaoming1-1/+1
it will fix error of make: agl-service-iiodevices/binding/iiodevices-binding.c:103:15: error: ‘e->event’ is a pointer; did you mean to use ‘->’? if (!e->event.closure) { free(e); return NULL; } Bug-AGL: SPEC-2807 Change-Id: Id74ddff09b660e9dcdab046caf4770e31bfff39b Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
2019-09-12fix(test/CMakeLists.txt): make test wgt workLi Xiaoming1-2/+2
Bug-AGL: SPEC-2795 Change-Id: Ib1aecb44e64d7ba6638bd6c502d0192fd3b64bb2 Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
2019-04-08iiodevices-binding: Use-after-free fixedhalibut_8.0.6halibut_8.0.5halibut_8.0.4halibut_8.0.3halibut_8.0.2halibut_8.0.1halibut_8.0.0halibut_7.99.3halibut_7.99.2halibut_7.99.1halibut/8.0.6halibut/8.0.5halibut/8.0.4halibut/8.0.3halibut/8.0.2halibut/8.0.1halibut/8.0.0halibut/7.99.3halibut/7.99.2halibut/7.99.18.0.68.0.58.0.48.0.38.0.28.0.18.0.07.99.37.99.27.99.1halibutClément Bénier1-1/+1
- call afb req fail before free client Change-Id: I8e5157a6ede435541bbfe0f05e3db4dfd1f37dd9 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2019-03-01autobuild: fix warnings due to cp command exit errorRaquel Medina2-26/+50
- bring latest version of autobuild script in - move conf.d/autobuild to root folder - update autobuild script to fix warnings triggered by cp operation error. Change-Id: If18c0e5dc5b9f7ae9ebd376d6cb3968dab201cbc Bug-AGL: SPEC-2164 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
2018-11-09Change .gitmodules following submodule migrationhalibut_7.90.0halibut/7.90.0guppy_6.99.4guppy_6.99.3guppy_6.99.2guppy_6.99.1guppy/6.99.4guppy/6.99.3guppy/6.99.2guppy/6.99.17.90.06.99.46.99.36.99.26.99.1Frederic Marec1-3/+0
Remove app-template in .gitmodules Remove .gitmodules Remove conf.d/app-templates Change-Id: I5054e3b97b9e19e04db5dc0847d7f6988a5f122f Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
2018-11-09Improve iiodevices testFrederic Marec5-97/+137
ADD $SUDO variable to be able to run test natively and on target ADD afterall script to remove dummy devices ADD new tests Remove test/afb-test.sh following new afm-test process Change-Id: Ib04e21f23518e8836c7bec00999f15f5d8212ae9 Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
2018-10-31Migrate app-templates to CMake moduleRomain Forlot2-4/+7
Bug-AGL SPEC-1682 Change-Id: I707b8d6a9aee0a1bce8b3bad17d4a07d981a0c3a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-12iiodevices: add afb_req_failClément Bénier1-4/+16
add afb_req_fail when a request is not desired Change-Id: Ifacf7203cf503229689db195c7844a73a4b1de13 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-10-12set_channel: no next channel when it doesn't existClément Bénier2-3/+23
in set_channel, when channel does not exist, next_channel has to be set to NULL Change-Id: I512691126200b2a1cc5041b1d2855087b8da1895 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-10-09Use feature 'required-binding'Jose Bollo1-1/+1
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: I81f2b8531ce91954726687c8384a0ed748f48442 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2018-10-04Add tests for iiodevice bindingFrederic Marec8-16/+218
Add test for accelerometer, compass and gyroscope Add script beforeAll.sh to initiate iio dummy devices Add Readme.md to describe how to use test Fix BUILD_TYPE in cmake.config Change-Id: I39edfce6a43b519c0ff6bc0a7d2f1d2477098cff Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
2018-09-14Init test directory for iiodevicesFrederic Marec8-0/+221
Change-Id: I8b76687cfff4824d1d83a7f77336a136fa79b9d6 Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
2018-09-13Update version of conf.d/app-templates submodule.Frederic Marec1-0/+0
Changes of conf.d/app-templates: (76e12e7 - CorentinLGS) app-templates doc: Changed doc to fit new format. (02f45f1 - Romain Forlot) Update Docs (52ae181 - Romain Forlot) Fix: typo (f0b24b0 - Romain Forlot) Rollback about TEST build type (e841a77 - Romain Forlot) Adding a TEST build type (994ebc1 - Romain Forlot) Change default compilation options. (85d5ffd - Romain Forlot) Test widget only if there are test materials (d14bdce - Romain Forlot) Handles more test LABELS. (70cf8fd - Romain Forlot) Missing flag for COVERAGE build type (3c99b8a - Romain Forlot) Create a test widget (9c1a0fb - Romain Forlot) Fix: interpreted '&' character (9202fac - Romain Forlot) More accurate comment about widget template file. (f94e45e - Romain Forlot) Align sample on actual default compile options (d0acc2a - Romain Forlot) Add support to binding version 3. (6fb3846 - Romain Forlot) Warning if not using wgtpkg-pack to make a widget (35f3af1 - Sebastien Douheret) Rework CMAKE_INSTALL_PREFIX and INSTALL_PREFIX var (332f377 - Romain Forlot) Be able to overwrite BUILD_TYPE using CLI (1ec7531 - Romain Forlot) Use CACHE variable for other common CMAKE variable (0880356 - Romain Forlot) Fix:: wrong wgt using RELEASE BUILD TYPE (eec9f07 - Romain Forlot) Fix: SYSROOT location detection... Wrong test. (291aa4e - Romain Forlot) Change the default debug compilation options. (22a2cbf - Romain Forlot) Clearer coverage compilation options configuration (aa68dbd - Romain Forlot) Don't overwrite the autobuild script if it exists (a13e7b9 - Romain Forlot) Disable the in-tree build method. (51026d2 - Romain Forlot) Detect Yocto as OS distribution (1f2944e - Romain Forlot) Fix: wrong compile options added (92646f6 - Romain Forlot) Fallback using zip format if no wgtpkg-pack found (f65761c - José Bollo) 02-variables.cmake: Avoid checking CXX version if not required (3965d37 - José Bollo) config.cmake.sample: Remove dependency to libsystemd (a45ae0c - José Bollo) config.cmake.sample: Remove dependency to libmicrohttpd (9b17efe - Thierry Bultel) Added -D_FORTIFY_SOURCE=2 to CFLAGS (66f7bc8 - Thierry Bultel) start-on-target: uses RSYNC_PREFIX path for config Change-Id: I97d8dd43f93444688b1803410a26bc102e581c9e Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
2018-06-29README: add client demo example and fix some spellingsguppy_6.90.0guppy/6.90.0flounder_5.99.6flounder_5.99.5flounder_5.99.4flounder_5.99.3flounder_5.99.2flounder_5.99.1flounder/5.99.6flounder/5.99.5flounder/5.99.4flounder/5.99.3flounder/5.99.2flounder/5.99.16.90.05.99.65.99.55.99.45.99.35.99.25.99.1test-iiodevicesClément Bénier1-3/+41
Change-Id: Iba5fb857ae7e87aa8e2f142495e894aa634229b7 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-06-29config.xml.in: fix provided-api to iiodevicesClément Bénier1-1/+1
Change-Id: Ia34f61677561a37fe0d01feb6475d74f90190ad8 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-06-29Merge "Remove useless code and declare iio_infos in C code"Jan-Simon Moeller3-14/+14
2018-06-28Merge "config.cmake: fix WIDGET_ENTRY_POINT to right library called ↵Jan-Simon Moeller1-1/+1
iiodevices-binding.so"
2018-06-29Remove useless code and declare iio_infos in C codeClément Bénier3-14/+14
- Remove treat_iio_infos function that is no used at all in source code. - it's really not a good idea to define static variable in header file (causing redefinition each time header file is included), so move static definition of iio_infos in C code. Change-Id: I66c6c5593c9d10581b49ce5f2a9b2f4952584259 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh> Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-06-28Merge changes from topic 'iio'Jan-Simon Moeller2-1/+10
* changes: Add git ignore file/dir list Add missing afb-daemon dependency
2018-06-28README: fix spelling mistakesClément Bénier1-10/+10
spelling mistakes remove channel static info in remaining issues Change-Id: Ia834d6fb7de44e28f03064a375d77212810d74f3 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-06-27config.cmake: fix WIDGET_ENTRY_POINT to right library called ↵Clément Bénier1-1/+1
iiodevices-binding.so Change-Id: I68a4c2d3f3b8c72cd152bc3e411aaf84f5d45705 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-06-27Add git ignore file/dir listSebastien Douheret1-0/+8
Change-Id: I2853507d7215dc2531f9718b52bafe881393769a Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-06-25Add missing afb-daemon dependencySebastien Douheret1-1/+2
Change-Id: I8c417fd6cf6e8946ddbb649b55bb56c063f056e6 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-06-22string copy: use n copy(snprintf, strncpy)cle©mentbeénier2-14/+16
Change-Id: Ie543eb9628d2632427dd2d6ca215c92358d5920e Signed-off-by: cle©mentbeénier <clement.benier@iot.bzh>
2018-06-21gitreview: update it to iiodevicesclement benier1-1/+1
Change-Id: I8d699d8d0126d88eb9892e99430bf953456acb4f Signed-off-by: clement benier <clement.benier@iot.bzh>
2018-06-21read static infos: improve read static infos for channelsclement benier1-15/+53
gather all same static infos and add suffix for different values between channels. Change-Id: I48d3b01667b829411efa39405347d6e396211431 Signed-off-by: clement benier <clement.benier@iot.bzh>
2018-06-21add client_sub structure: split channel_fd structure into channel and client_subclement benier2-240/+254
Change-Id: I1bd0cea12128ac3d78d6f4c4ee472cd74e69469d Signed-off-by: clement benier <clement.benier@iot.bzh>
2018-06-21context_set vs uid: remove json key uid and set context for afb_reqclement benier2-44/+19
Remove the uid json argument and using afb_req_context_set/get to identify client session. Change-Id: Ib57f4443d20f4ee7cec9db17b6c6b81d6ca0e24c Signed-off-by: clement benier <clement.benier@iot.bzh>
2018-06-21config.cmake: set project infosclement benier1-5/+5
Change-Id: Icd0607abfa205ea0382eac78f70e76c87c0e9147 Signed-off-by: clement benier <clement.benier@iot.bzh>
2018-06-21README: updateclement benier1-59/+26
Change-Id: If4abd319aa466abaa1bca067bdd1f709152215ff Signed-off-by: clement benier <clement.benier@iot.bzh>
2018-06-21binding iiodevices: handles 3 iiodevicesClément Bénier8-184/+679
handle accel, magn et anglvel iiodevices args key indicates the desired coordinates at subcription frequency can be also specified at subscription Example for subscription: - iiodevices subscribe { "event": "accel", "uid": "1", "args": "xyz", "frequency": "0.1" } - iiodevices subscribe { "event": "magn", "uid": "1", "args": "xz", "frequency": "0.1" } Change-Id: I7f300f56b5d69506434f31fbb6e552c7afdf7489 Signed-off-by: Clément Bénier <clement.benier@iot.bzh> Signed-off-by: clement benier <clement.benier@iot.bzh>
2018-06-21initial commit: draft work in progressClément Bénier13-0/+1009
Change-Id: I8c0c17c66a484df9bc152046466d80224cf65498 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-06-19Initial empty repositoryJan-Simon Moeller0-0/+0