aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-09-15Add gitreview file for jellyfish branchjellyfish_10.0.3jellyfish_10.0.2jellyfish_10.0.1jellyfish_10.0.0jellyfish/10.0.3jellyfish/10.0.2jellyfish/10.0.1jellyfish/10.0.010.0.310.0.210.0.110.0.0jellyfishJan-Simon Möller1-1/+1
Update the .gitreview file. Change-Id: I2eefdaa9f7211abfb980b1202ce1ee41dec2fbdf Bug-AGL: SPEC-3581 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2020-02-11Update .gitreview filemarlin_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.2jellyfish_9.99.1jellyfish/9.99.4jellyfish/9.99.3jellyfish/9.99.2jellyfish/9.99.19.99.49.99.39.99.29.99.112.90.011.92.011.91.010.93.010.92.010.91.0Jan-Simon Möller1-1/+0
This updates the gitreview file in the project . Change-Id: Ic41133f6f860487a6cabb7ccb9867daf9850b54a Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2020-01-10timer: Fix stopping a running timericefish_8.99.5icefish/8.99.58.99.5Romain Forlot1-18/+13
This fix a bug where using 1 don't stop the timer to trigger and now TimerStop really stop the timer... sd_event_source_unref only decrement the ref counter of the sd_event_source. If we want to stop returning -1 in the callback will make sure we effectively stop the timer instead of only decrement the ref counter. Bug-AGL: SPEC-3073 Change-Id: I4619ff1695c398a7c9683b58bd193b8c21b9abb1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2019-12-04Add 'GetRunningBindingDirPath' functionicefish_8.99.4icefish_8.99.3icefish_8.99.2icefish/8.99.4icefish/8.99.3icefish/8.99.28.99.48.99.38.99.2Jonathan Aillet3-0/+45
Add 'GetRunningBindingDirPath' function that returns the binding directory path (the path to the directory that contains the binding). FYI: - 'Binding directory path' is the path to the directory that contains a binding binding launched by the binder. - 'Binder root directory path' is the path specified at binder launch using '--rootdir' option. If no option is specified, binder root directory is set to the current directory. SPEC-AGL: SPEC-3009 Change-Id: I34b3d17710ebc2bf06541a00ca7f8d7189f6aa18 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-12-04Add 'GetAFBRootDirPath' functionJonathan Aillet3-16/+69
Add 'GetAFBRootDirPath' function that replace 'GetBindingDirPath' function as previous 'GetBindingDirPath' was returning 'Binder root directory path' and not 'Binding directory path'. 'GetBindingDirPath' function has been kept to call 'GetAFBRootDirPath' for compatibility issues. FYI: - 'Binding directory path' is the path to the directory that contains the binding. - 'Binder root directory path' is the path specified at binder launch using '--rootdir' option. If no option is specified, binder root directory is set to the current directory. BUG-AGL: SPEC-3009 Change-Id: I3f4bb64f1d67558a291481e0987bd93666535add Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-09Add function to add one json array to another oneicefish_8.99.1icefish/8.99.18.99.1Jonathan Aillet2-1/+43
Add a function to add one json array to another one. The json array to add can be inserted at any place of the json array to complete using 'idx' parameter. Also, correct minor mistake in 'wrap_json_object_add' description. BUG-AGL: SPEC-2867 Change-Id: I8936f298a4499f265646a75584d7fe6b29700513 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-01Pkg config files: use CMAKE_INSTALL_LIBDIR varClément Bénier2-2/+2
library folders may be lib or lib64 so use cmake CMAKE_INSTALL_LIBDIR variable instead of lib Bug-AGL: SPEC-2846 Change-Id: I7a63052990a5268f971b08c0640b6bb199b272d3 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2019-06-13QAfbWebsocketClient: Allows null callback (FIX)halibut_8.0.2halibut_8.0.1halibut_8.0.0halibut_7.99.3halibut_7.99.2halibut/8.0.2halibut/8.0.1halibut/8.0.0halibut/7.99.3halibut/7.99.28.0.28.0.18.0.07.99.37.99.2José Bollo1-4/+3
Don't passing a callback is a valid model. But the library should not crash in that case. This fix the uissue. Bug-AGL: SPEC-2520 Change-Id: I6e6f3e6b617cfcf251ac910db5fa27832c2713a1 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-04-23Fix .deb packaging following review 20926halibut_7.99.1halibut/7.99.17.99.1Frederic Marec1-1/+1
Change-Id: Ia9a4eed88b60039490ca4c880a0b731916b77f8f Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
2019-04-17docs/usage: fix broken linkClément Bénier1-1/+1
Change-Id: I62bd819cd1bb3edd2140ac5f10501e5285bfe5c8 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2019-04-16docs/usage: fix broken linkClément Bénier1-1/+1
Change-Id: I660560f31b3885de78c43b9da9ceae66d80451dc Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2019-04-12afb-helpers-book: changing name of the sectionClément Bénier1-1/+1
Change-Id: Ie5b3a6c287d50cc42b968c1632a39f33b41f1157 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2019-03-22Use C++11 standard by defaultsandbox/claneys/pkg_wipRomain Forlot1-1/+2
Needed for older Ubuntu LTS distribution 16.04 Change-Id: I7c1d23eecf34b2e86cfcd9de5a8f755c690cbe26 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2019-03-22Set PROJECT_VERSION overwritable by cliRomain Forlot2-2/+2
Use AGLVERSION variable that could be set by command-line to override the one set in the CMakeLists.txt file. Tiny fix on the Libs variable to use now ${libdir} instead of the CMake variable which isn't absolute Change-Id: Ic8137766ee3a0fb5b51cc49d2ea39d8d66e48b3f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2019-03-07Moved Qt's automoc and autorcc variablesLoïc Collignon1-4/+5
Thoses variables are used by CMake for building Qt's projects, thus need to find a Qt installation. Therefore you should set those to ON only if you also do a find_package to find a Qt installation. Change-Id: Ibd0042206913f2d4e65fc56092f3348efa3103da Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2019-02-24book.yml: needed for new doc workflowClément Bénier1-0/+27
Change-Id: Id7e4f772ec1c7f8022a80bf7561b0edfdee3f10a Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2019-02-06Fix gitreview filehalibut_7.90.0halibut/7.90.07.90.0Jan-Simon Möller1-1/+1
Change-Id: Id211e0463c0d4585828d03e493bbc504da8cd45e Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2019-01-23Set PROJECT_VERSION overwritable by cliRomain Forlot3-2/+2
Use AGLVERSION variable that could be set by command-line to override the one set in the CMakeLists.txt file. Change-Id: Ic8137766ee3a0fb5b51cc49d2ea39d8d66e48b3f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2019-01-16Add functions reference documentationguppy_6.99.4guppy/6.99.46.99.4Romain Forlot12-140/+605
Only JSON helpers functions were documented before this commits. This add a description for every function of the afb-helpers library. Bug-AGL: SPEC-2114 Change-Id: I3ae941841ef4ad8e345dd4cd6bc012f6596eadc2 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2019-01-04Call the freeCB function a manual timer stop callRomain Forlot1-1/+1
This invokes the freeCB callback function which is in charge of release allocated resources in the timer callback. This was only called on a normal stop of a timer not when called manually by TimerEvtStop. Change-Id: I750a62ee0662b905107f53d070add1e8ccba77f8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2019-01-04Little code cleaning.Romain Forlot5-25/+12
Rename apiHandle to api. Add a missing parameter to QAfbWebsocketClient::call function comment. Change-Id: I6fb1acd7357fbea3132cd429e9477a1a0b8a4f43 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2019-01-03Adding packaging filesRomain Forlot8-0/+147
Adding the necessary packaging files for the AGL supported distributions. OpenSUSE, Fedora, Ubuntu and Debian. Bug-AGL: SPEC-2097 Change-Id: I81fe9b614366c2d9f3337f18082ed221b8931e6a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-27Split the Qt part of the afb-helperssandbox/claneys/shared-libRomain Forlot2-39/+93
Split the Qt part of the afb-helpers in another library with only Qt helpers functions that could be enabled using the CMake option: AFB_HELPERS_QT=ON Bug-AGL: SPEC-1689 Change-Id: I761fef574ea61235226f3a1cb1663ddebec41c6d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-17Static lib: pass afb-helpers to a static libraryguppy_6.99.3guppy/6.99.36.99.3Clément Bénier6-52/+278
- add afb-timer in helpers: rename ctl-timer from ctl-utilities into afb-timer - use the GNUinstalldirs module to set the destination directories. Change-Id: Ic88105d140edabcc96b091fb23f215db11ccb8c6 Signed-off-by: Clément Bénier <clement.benier@iot.bzh> Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-17wrap-json: ImprovementsJosé Bollo1-21/+25
* Most call "d = skip(++d);" are replaced by "d = skip(d + 1);" that is equivalent but that virtually doesn't assign transiently d with d+1. * make use of JSON_C_TO_STRING_NOSLASHESCAPE in test to improve output. Use a macro to reduce the code. * enforce 'wrap_json_check' to use 'wrap_json_vcheck' and 'wrap_json_match' to use 'wrap_json_vmatch'. Change-Id: I6e823da40415db4b54ec809455c93b39a8c5e9a5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-12-13Revert "Added afb_list.h"Jan-Simon Moeller1-755/+0
Reverting due to: - Merged w/o full review cycle. - License unclear. This reverts commit a8b170a6131b6ad25e86745fdf10de63e16e3555. Change-Id: I810dcca9da84d930716a29b2220e49a0859df3c5
2018-12-13Added afb_list.hThierry Bultel1-0/+755
This is a user-space implementation of the kernel linked lists. Massively used in the kernel, it is really light and is contained in a single header. Change-Id: I686b5fa5707b1c59339694c460ab8f0fec9679d4 Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-12-13filescan-utils: follow symbolic links in searchThierry Bultel1-1/+3
Let the directory entities of symlink type be taken into account. Change-Id: Ic0197e81d1e0c761ca6a0fe9ea2dbcb56eee447b Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-12-13wrap-json: Fix duplicated lines in header fileJosé Bollo1-3/+0
Change-Id: I75558cf086b8b2d74297f9996abaa7f5a0b58cb7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-12-13Add '@' as binder middle name separator.Romain Forlot1-1/+1
Used binder name if set using the application id which use '@' to separate name from version. Change-Id: I1c4d963250ac17d4e4104b6cc69aa08b8fa95505 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Enhance 'wrap_json_clone_depth' descriptionJonathan Aillet1-1/+5
Enhance 'wrap_json_clone_depth' description by adding details about clone depth using this function. Change-Id: Iede8fa6a697f12e8a32c1e15afdcef445edbcfe4 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-12-13Fix: use of GetBindingDirPath without dynapiRomain Forlot2-2/+10
For classic binding < 3 without dynapi this fix the error at compile time about conflicting type for this function. This worked on eel and previous version because 'struct dynapi' was declared and available for version 2 but now since binder is in V3 then it isn't the case so function signature is not valid anymore. Change-Id: I135a723d21d70b8c54f4cab1c534210757318ed0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Retrieve directory list from environment variablesRomain Forlot2-4/+96
This adds a function able to retrieve from a prefix and suffix an environment variable. This is meant to search config or plugin files from potentially several sources, environment and source code. This tries to get 2 environments variables: - prefix+binderName+suffix (eg: AFT_LOWCAN_CONFIG_PATH) - prefix+suffix (eg: AFT_CONFIG_PATH) Then it returns the one found or both if they exist with the most accurate one (with the binder name) first followed by the other. Change-Id: Ic448ff017e6158bec05895d63688b8968b5c6434 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-12-13Remove the file .gitmodulesJose Bollo1-3/+0
This project has no dependencency to any submodule. Consequently it is cleaner to remove the file .gitmodules Change-Id: I097de9375a66c235b07626946ca8fcad196afbbd Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2018-12-13Remove unnecessary 'AFB_DEBUG' redefinitionJonathan Aillet1-1/+1
Remove unnecessary 'AFB_DEBUG' redefinition when using app-fw v3. Change-Id: I3b0271442495882e2a10762fe54b2f3f4ebe8e6b Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-12-13Use binding version to handle dynapiJonathan Aillet2-9/+4
Use binding version to define dynamic api debug messages function. It is also cleaner to define binding version directly into repository cmake than into a header like before this commit. Change-Id: Ia14f635a7a2cec05c29f27ee4ce645711a8574a4 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-12-13At search, use the prefix parameter as a prefixJonathan Aillet1-1/+1
Be sure that prefix parameter is used as a prefix when searching for configuration files (when using 'ScanForConfig' function). Before this change, the function was only checking that the prefix parameter was present in the file name (but not necessarily at the beginning of the file name). Bug-AGL:SPEC-1239 Change-Id: I9986cce5fab0fd5cd6d3049731f4c5883056a5f4 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-12-13Remove deprecated use of cmake/Qt macroLoïc Collignon1-1/+2
Last versions of cmake/Qt don't need the use of some macro anymore. It allows you to put *.qrc files as sources files, which are resources files. Those files need to be processed by a Qt's tool to be transformed as C++ sources files. Change-Id: Ide4b6eef53b3f6edfeac3c0553c79ce4277b1b7b Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-12-13Rename method to avoid conflict with Qt's oneLoïc Collignon2-2/+2
Each QtObject define an 'event' method, which can conflict with the 'event' method to handle events in an Application Framework meaning. Change-Id: I0fad844bfaa8fbfc2d14cc15b1f346b6f739a643 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-12-13Fix warnings due to json-c evolutionSebastien Douheret1-3/+3
Library json-c now returns size_t instead of int. Change-Id: Ib4f8bcd5dc6382fb3d189e83707a39dee8e14683 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-12-13wrap-json: new helper functions for comparisonjobol3-29/+447
The new functions are - wrap_json_clone_depth: clone with defined depth - wrap_json_sort: sort an array accordingly to wrap_json_cmp - wrap_json_keys: compute the array of sorted keys - wrap_json_cmp: compare 2 items - wrap_json_equal: test equallity - wrap_json_contains: test inclusion Change-Id: I9787bff6c262fa2702c27802d771e2d487ce6309 Signed-off-by: jose bollo <jose.bollo@iot.bzh>
2018-12-13Removed anonymous function in ScanDir and fixed warningsSebastien Douheret1-71/+78
Change-Id: Ie6b67506be077f8fe5c2108e5dd98f9460dda485 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-12-13wrap-json: Add clone facilityJosé Bollo3-1/+97
This adds 3 new facilities: - wrap_json_clone: clones any json object superficially - wrap_json_clone_deep: clones any json object deeply - wrap_json_add: adds to an object the fields of an other object Change-Id: I3844d972aa6477c9dde6f66ad0b0604284a853a7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-12-13Disabled debug code (only used for testing).Sebastien Douheret1-1/+1
Change-Id: I76e66e34f4dfe8d598d6ccf4c91e61932d5b75bc Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-12-13Correction to include dynamic api correctlyJonathan Aillet1-1/+2
Define the correct version needed by the application framework for dynamic api. Change-Id: Ic0fd504316e2fc086545f0615ec6e83f2b1cae2d Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-12-13Fixed build warnings with gcc >= 7.3Sebastien Douheret1-3/+3
Reduced the number of warnings in native host configuration (here Tumbleweed) in order to not hide true/real warnings that may appear in the future. Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-12-13Added afb-helpers-utils.hThierry Bultel1-0/+17
Added this file to some useful macros, the first one here is INT_STR_MAX that permits to get rid of a warning with gcc >= 7.2.0 Change-Id: I768d216ab5494d346d5ee6e0df66f93410bfab57 Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-12-13Fixed compilation warnings with gcc-7.2.0Thierry Bultel1-5/+5
Replaced some 'size_t' by 'int' Change-Id: I07492dad242b2c8f608f9cc90a4a257e48acec6a Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-12-13Fixed spellingSebastien Douheret2-3/+3
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-12-13More secure way to use strncat and strncpyRomain Forlot1-3/+3
This ensure not data will be written out of bound of the destination variable buffer Change-Id: I4d736855f085fc5f728258c5928fed7191df46b4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>