aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2024-02-13Add gitlab issue/merge request templatesHEADsalmon_18.90.0salmon/18.90.0ricefish_17.90.0ricefish/17.90.018.90.017.90.0masterJan-Simon Moeller2-0/+6
Add template files for gitlab Bug-AGL: SPEC-4474 Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Change-Id: Id34f980531eb607c31e93934eeb32baa84a97db4
2021-03-02Add const in afb_verb_t type declaringneedlefish_13.93.0needlefish/13.93.0marlin_12.93.0marlin_12.92.0marlin_12.91.0marlin_12.90.1marlin_12.90.0marlin/12.93.0marlin/12.92.0marlin/12.91.0marlin/12.90.1marlin/12.90.0lamprey_11.92.0lamprey_11.91.0lamprey/11.92.0lamprey/11.91.013.93.012.93.012.92.012.91.012.90.112.90.011.92.011.91.0Qiu Tingting1-1/+1
Bug-AGL: SPEC-3831 Change-Id: I0463552ad9625d1360b06d8026bd03235496579c Signed-off-by: Qiu Tingting <qiutt@fujitsu.com>
2020-08-20Fix outdated repo url and binding labelkoi_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.310.93.010.92.010.91.0Li, Xiaoming2-3/+3
Bug-AGL: SPEC-2714 Change-Id: I3f9eb29f04046cd3ddccdcfb6aba71c889868aa6 Signed-off-by: Li, Xiaoming <lixm.fnst@cn.fujitsu.com>
2020-02-18Update autobuild script to create new targetsjellyfish_9.99.2jellyfish_9.99.1jellyfish/9.99.2jellyfish/9.99.19.99.29.99.1Frederic Marec2-28/+176
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: I2dedf2c8e13b1f79df4b3cbb34131c33a197a9b4
2020-02-11Update .gitreview fileJan-Simon Möller1-0/+1
This updates the gitreview file in the project . Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> Change-Id: I03163ac022436cb9161531ec9648d203adf2a51b
2019-08-30refactor(config.xml.in):Replace required api with required bindingicefish_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
Appfw docs: "required-api local": OBSOLETE SINCE FF (AGL6), PROVIDED FOR COMPATIBILITY.Use the feature urn:AGL:widget:required-binding instead. Bug-AGL: SPEC-2781 Change-Id: I1f0ca3ef30d00c4cfad70738058a16c59b848232 Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
2019-08-01Allow to set host+port using params in config.jsonsandbox/SebD/wipSebastien Douheret4-35/+69
Default influxDB host and port can now be set using params field of plugins section of harvester-config.json file. For example : "plugins": [ { "uid": "influxdb", "info": "Plugins that handle influxdb read and write", "libs": "influxdb.ctlso", "params": { "host": "localhost", "port": 8086 } } ], Change-Id: Iff0fffe1d0883304413d887986991a207b840aa7 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2019-08-01Update Copyright to 2019Sebastien Douheret12-12/+12
Change-Id: I37c68670c2dcae4ef3ade5fa9579a18ff9c7b10f Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2019-08-01Add scope-platform permissionSebastien Douheret1-1/+7
Change-Id: I4fead97bb7a1686763a3da80c7ec4f8a7e9a07f8 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2019-08-01Fix strings quotingSebastien Douheret3-88/+94
Change-Id: If7226a1c4692c262e82bc77b2bb62a5487227ab3 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2019-08-01Rework how to build dest DB URLSebastien Douheret4-12/+47
Change-Id: I5a351d6e2f5750dcb39bd9feff71abe930c052bb Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2019-08-01Reorder the json configuration fileSebastien Douheret1-4/+4
Change-Id: Ib555a70aa910750fb865c7b25e81f6c20ba6c460 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2019-08-01Use generic path for Json config fileSebastien Douheret2-95/+101
Change-Id: Iad3f46a4b08e29efb72dff8a3d2328e19923186a Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2019-08-01Update ignored filesSebastien Douheret1-1/+2
Change-Id: I845b26279414f6230f908c33ab410675d0348ecd Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2019-08-01Improve buf allocation for curl requestsSebastien Douheret1-3/+4
Use alloca to allocate write buffer used to send curl requests. Better solution would be to allocate one time (using malloc) and then realloc if needed (IOW current buf size is not suffisant). Change-Id: I9c2ea8628025edd76964993e11d693f1b945045b Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2019-08-01Fix DEFAULT_DBHOST setting (remove double column)Sebastien Douheret1-3/+3
Bug introduced by previous commit 5de858ef8eb117fab. Change-Id: I628b8b13ddbb8dc6a672f1d5378bf496d8ef8fd1 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2019-08-01Add comments and re-ident codeSebastien Douheret4-53/+61
Change-Id: Ibb4636bd968d6e4fd564ab40d5cf59e5a6ec6210 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2019-08-01Backport improvements in autobuild scriptsSebastien Douheret2-4/+12
Change-Id: I2091262c34ca1961cef0c2f25996bf5c34fe609c Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2019-08-01Add a config.xmlSebastien Douheret2-4/+20
Add the config.xml file to allow the harvester running on a target. Change-Id: I8446c1e9f3713ee4cd8c8a588ba5ffc86786577e Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2019-08-01Tweak json configuration file.Sebastien Douheret1-1/+0
Remove the spath in the json configuration in order for the controller to search the plugin in the default path. Change-Id: If7e53fe1048117822648ac026fda2f07c8b4cfaa Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2019-08-01Fixed vscode cpp include files propertiesSebastien Douheret1-5/+4
Change-Id: I71f8a9587fd116c04d1862967e4a2f115a91d93f Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2019-07-03Fix spellinghalibut_8.0.6halibut_8.0.5halibut_8.0.4halibut_8.0.3halibut_8.0.2halibut_8.0.1halibut_8.0.0halibut_7.99.3halibut/8.0.6halibut/8.0.5halibut/8.0.4halibut/8.0.3halibut/8.0.2halibut/8.0.1halibut/8.0.0halibut/7.99.38.0.68.0.58.0.48.0.38.0.28.0.18.0.07.99.3halibutSebastien Douheret3-4/+5
Bug-AGL: SPEC-2597 Change-Id: I6a707a58e36d3eb1379dd00f2da03186da456491 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2019-06-27Fix strings serializationhalibut_7.99.2halibut/7.99.27.99.2Sebastien Douheret2-3/+9
Also update and improve influxdb install instructions in README.md. Bug-AGL: SPEC-2578 Change-Id: I3a009efb2c1deed72635fbe18f586bddf14ddedb Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2019-05-24Fix InfluxDB request formathalibut_7.99.1halibut/7.99.17.99.1Johann CAHIER1-11/+16
As per: https://docs.influxdata.com/influxdb/v1.7/write_protocols/ separator should be a comma between metric name and metadatas (tags). Bug-AGL: SPEC-2416 Change-Id: Iedfa21ec8e61aa406600711b38e5ac2b0e87d776 Signed-off-by: Johann CAHIER <johann.cahier@iot.bzh>
2019-05-24Better memory management in chained listJohann CAHIER5-43/+47
key is now managed internally, using a copy. add_elt() / add_key() now provide a 'suffix' parameter. If suffix is given, it is appended to the key. If NULL, or empty string ("") is given, nothing is appended. NOTE : value is still owned by json object. Bug-AGL: SPEC-2416 Change-Id: I624a2dd211801c2d24b2c6739f2c7536a047ea32 Signed-off-by: Johann CAHIER <johann.cahier@iot.bzh>
2019-05-21Fix influxdb-writer reporting of multiple valueJohann CAHIER1-26/+24
When the verb 'write' is called with a set of multiple values, the request sent to to influxdb will include the first value N times. Also cleaned/factorized a bit the code... Bug-AGL: SPEC-2416 Change-Id: Iafee9b472e8ef451bb048aaf487c94f3b0ae1c57 Signed-off-by: Johann CAHIER <johann.cahier@iot.bzh>
2019-05-15Add LUA dependency for any distro not only debianRomain Forlot1-0/+1
And remove old directory about submodules which has been migrated. Change-Id: I473942f8fc87eea7563feef8d8a7b0a7d5b69600 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2019-04-12Remove also the submodule directoriesRomain Forlot2-0/+0
Even empty if the directories exists in the git cache then it remembers that they were submodule and try to initialize them... Bug-AGL: SPEC-2139 Change-Id: Ie2ea03498e9453d26442f32d83c2d604966855e4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2019-04-01Git submodule migration to separated librariesRomain Forlot9-83/+62
- Replace controller binder functions definition with the binder ones. and remove the last used submodules to use the separated libraries. Bug-AGL: SPEC-2139 Change-Id: I0e354757dec692c13b49f02226fcf891953667f5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2019-03-29Handle Debian-like distro LUA and curl packagesRomain Forlot2-1/+2
Lua is not handle the same way depending on the distribution so we need to adjust the dependency to find it anyway. Adding the libcurl also for the needed package. Change-Id: Ie6cd9b56f829ccb82ebcf0176cb84f8ad15b57c5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-11-22Move autobuild to top treehalibut_7.90.0halibut/7.90.0guppy_6.99.4guppy_6.99.3guppy_6.99.2guppy/6.99.4guppy/6.99.3guppy/6.99.27.90.06.99.46.99.36.99.2Frederic Marec2-26/+42
Bug-AGL: SPEC-495 Change-Id: Id3899e764538fb3e27bb69fb5cb1169b3446697c Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
2018-11-13Change .gitmodules following submodule migrationguppy_6.99.1guppy/6.99.16.99.1Frederic Marec1-3/+0
Remove app-template in .gitmodules Change-Id: I52e1b9df7b91331916c7732726cf0b823d2e1f8e Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
2018-10-31Migrate app-templates to CMake moduleRomain Forlot2-4/+8
Bug-AGL SPEC-1682 Change-Id: Ic1996161f183c79db34d1da1b75bbfcdd28c9222 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-10-23Fix Debian LUA 5.3 package name requiredRomain Forlot3-2/+1
Bug-AGL: SPEC-1790 Change-Id: I904ba9e18db6a260d3042ae014670f40039c89c8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Added AGL .gitreview fileguppy_6.90.0guppy/6.90.0flounder_5.99.6flounder_5.99.5flounder_5.99.4flounder_5.99.3flounder_5.99.2flounder/5.99.6flounder/5.99.5flounder/5.99.4flounder/5.99.3flounder/5.99.26.90.05.99.65.99.55.99.45.99.35.99.2Sebastien Douheret1-0/+4
Change-Id: I9655872c8d2803649266ac01cc0e751db760e0f9 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-07-10Used right INSTALL_PREFIX variableSebastien Douheret1-4/+4
Change-Id: Idb485fd1618b1a9bd8f7a94024a9aadbfd52a682 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-07-10Fix compilation error 'unitialized variable'Romain Forlot1-1/+1
Change-Id: I5add16da1851262268eca5f71ee793cbb6ef62dc Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Make compatible with APIv3 + DYNAPIRomain Forlot1-1/+1
Change-Id: I8c60e047e94a5388f75cc6273f09dd68f4014379 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Bump SubmodulesRomain Forlot4-2/+2
Submodule afb-helpers 5811a53..52f0478: > Remove unnecessary 'AFB_DEBUG' redefinition > Use binding version to handle dynapi Submodule app-controller-submodule e45d063..440be09: > Use binding version to set controller definitions > ctl-lua: typo fix > asynchronism for test: LockWait added > Fix: plugin api assignement order Submodule conf.d/app-templates 0880356..332f377: > Be able to overwrite BUILD_TYPE using CLI > Use CACHE variable for other common CMAKE variable Change-Id: I455c7132ccd9266b8e77a5a8c02fd7501f577c11 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Fix typoRomain Forlot1-137/+138
Change-Id: I586b9c1d37e28d41f163cb8f25c161645787835c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Bump submodulesRomain Forlot3-0/+0
Submodule afb-helpers f5f1e25..5811a53: > 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 > Fix warnings due to json-c evolution > wrap-json: new helper functions for comparison > Removed anonymous function in ScanDir and fixed warnings > wrap-json: Add clone facility > Disabled debug code (only used for testing). > Correction to include dynamic api correctly > Fixed build warnings with gcc >= 7.3 > Added afb-helpers-utils.h > Fixed compilation warnings with gcc-7.2.0 > Fixed spelling Submodule app-controller-submodule 61c95f1...e45d063: > 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 > 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 < 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 Submodule conf.d/app-templates 6621af0..0880356: > Fix:: wrong wgt using RELEASE BUILD TYPE > Fix: SYSROOT location detection... Wrong test. > Change the default debug compilation options. > Clearer coverage compilation options configuration > 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. Change-Id: Id30bddbf563f9a8d14d47f9414a1cd4e46bbb0cd Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Making ping verb staticRomain Forlot1-1/+1
Change-Id: Ifbd3c5d89904581f2bf2cfbd55b29a71109788ed Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Set reader function unavailable for nowRomain Forlot2-4/+3
Reader is WIP and should not be used for the moment. Change-Id: Ic106dbe9382f0611ab8c05c6bb4ca61e4153eb39 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Use latest version of app-controller-submodule submodule.Sebastien Douheret4-4/+5
Changes of app-controller-submodule: (c04f029 - Sebastien Douheret) Fixed hidden bound variable (apiHandle) (cfe3919 - Sebastien Douheret) Fixed null value when push Lua arguments (69c0585 - José Bollo) Adjust to compile with incoming bindings v3 (d7e260c - José Bollo) Remove declaration to not existing functions (8ac6625 - Romain Forlot) Add 2 lua utilities function (d3504bb - Jonathan Aillet) Update README.md for new metadata keys. (690bdee - Jonathan Aillet) Fix a compilation issue due to modif of AFB_ReqSuccess (4063ff0 - Clément Bénier) README:md: update README accordingly to new json scheme. (e9f423a - Sebastien Douheret) Fixed crash due to call to json_object_put (ce3e14c - Sebastien Douheret) Fix segfault when printing long message from lua (6838dff - Sebastien Douheret) Fixed spelling of AFB_ReqSuccess (5b079d4 - Jonathan Aillet) Remove an unnecessary variable (ddd10be - Jonathan Aillet) Make parsing of action loading non blocking (540522a - Jonathan Aillet) Use an external file for app fw functions link (50feaf0 - Jonathan Aillet) Use macro to test request validity (bcd9efc - Sebastien Douheret) Fixed build warnings with gcc >= 7.3 (0e30275 - Jonathan Aillet) Increase lua script max message size (263731b - Jonathan Aillet) Prevent lost of config file path when searching (8ce6d20 - Jonathan Aillet) Correct way that api actions are handled in controller (64671ea - Jonathan Aillet) Handle more metadata in the controller. (53bc4e4 - Jonathan Aillet) Add possibility to set prefix to NULL in CtlConfigScan Change-Id: I25e46f4bf84f988035faaeb35fac7904d0231429 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-07-10Don't suffix tags and fields namesSebastien Douheret1-2/+2
Change-Id: Ib6b5101a6b105f0f024777ee52d9266f34e88f46 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-07-10Escape special characters according to influxDB docSebastien Douheret4-18/+79
Change-Id: I22724b547033b40b3160c3bbe1b2141349a1ead2 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-07-10Use latest version of afb-helpers submodule.Sebastien Douheret1-0/+0
Changes of afb-helpers: (9a1f7ea - jobol) wrap-json: new helper functions for comparison (c7cd527 - Sebastien Douheret) Removed anonymous function in ScanDir and fixed warnings (98c64ea - José Bollo) wrap-json: Add clone facility (5ae2a7a - Sebastien Douheret) Disabled debug code (only used for testing). (563bdea - Jonathan Aillet) Correction to include dynamic api correctly (9685413 - Sebastien Douheret) Fixed build warnings with gcc >= 7.3 (f250572 - Thierry Bultel) Added afb-helpers-utils.h Change-Id: Icae6afd7ac766b1e12e9d2bad22fd5df15c81841 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-07-10Fixed invalid pointer when concatenating fieldsSebastien Douheret3-236/+232
Change-Id: Ie4a3798d3b3bad3cd2c36154c2b989938e4114b4 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-07-10Fixed bug when searching tail of listSebastien Douheret3-78/+100
When searching tail of list, you cannot use directly input parameter (*l) , you should use a local variable instead (here new_elt). Change-Id: I13fc042f85580342ecf33cca2067a37ee55f4799 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-07-10Escaped special characters for measurement, tags and fieldsSebastien Douheret3-14/+68
See https://docs.influxdata.com/influxdb/v1.5/write_protocols/line_protocol_reference/#special-characters for more info. Change-Id: Iad2f7d00b7d6c42dbea33df03a75353e9cac97a9 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>