summaryrefslogtreecommitdiffstats
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: Ib56ce187ebabf23580e649ff9a246b89c9c5e29d
2021-01-14Fix potential memory leakneedlefish_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.0koi_10.93.0koi_10.92.0koi/10.93.0koi/10.92.013.93.012.93.012.92.012.91.012.90.112.90.011.92.011.91.010.93.010.92.0Li Xiaoming2-1/+4
It is better to init jresp as NULL, and allocate new memory when it is used, this will avoid the memory leak if the function return during the process. jobj should be freed before function returns. Bug-AGL: SPEC-3584 Change-Id: I4b917f7ecd06a1800d453ec43ffeccee89d923c6 Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
2020-11-30Add new network permissionkoi_10.91.0koi/10.91.010.91.0Scott Murray1-0/+1
Add new network permission to config.xml.in to yield a dependency on the systemd network.target target, this avoids the races observed with connman start up. Bug-AGL: SPEC-3509 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I9738f250ba95cc8c644cf1aa5ce363bb17c0521f
2020-08-06fix(network.lua): introduce several missing verb testjellyfish_9.99.4jellyfish_9.99.3jellyfish/9.99.4jellyfish/9.99.39.99.49.99.3Li, Xiaoming2-30/+20
This patch will do two things: - Add the missing verb in the test lua files, part of them are commented as they need extra code to run; - Remove TEST-README.md, which includes description of test wgt and reasons of the lost test verb. This file is not required now. Bug-AGL: SPEC-3458 Change-Id: I081a86605b4f2ace3d20e837826688b2db344af0 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: I62f600b3cef71333f9b62c8c761e442cf5dc8fba
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: I3a3866f307f94d956a8b56c20a0a3029ecf4efe2
2020-02-11Update .gitreview fileJan-Simon Möller1-1/+0
This updates the gitreview file in the project . Change-Id: I300e359c2cdc9c817dcdbf82ff1204738de8f475 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2019-09-12fix(test/CMakeLists.txt): make test wgt workicefish_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
Bug-AGL: SPEC-2795 Change-Id: I5c78c461bead40ecb154292d95830d44619e940c Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
2019-09-09refactor(.gitmodules):Remove redundant .gitmodulesLi Xiaoming1-3/+0
Bug-AGL: SPEC-2139 Change-Id: I311d850dfe4b863b37fec14054329beac5e29cae Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
2019-09-04fix(network-util.c): Remove -Woverflow warningLi Xiaoming1-1/+1
agl-service-network/binding/network-util.c:160:14: warning: integer overflow in expression ‘-2147483648’ of type ‘long int’ results in ‘-2147483648’ [-Woverflow] if (i64 >= -(1L << 31) && i64 < (1L << 31)) Bug-AGL: SPEC-2422 Change-Id: I3bdc78527b1fff44917561ea49dcfefa7a4d83a2 Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
2019-09-04fix(network-util.c): Remove -Wformat warningLi Xiaoming1-1/+1
agl-service-network/binding/network-util.c:281:16: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘gsize’ {aka ‘unsigned int’} [-Wformat=] AFB_WARNING("Can't handle variants with more than one children (%lu)", nitems); Bug-AGL: SPEC-2422 Change-Id: I0805dd2c1828818000cc92b7a8ea1e4c90e39073 Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
2019-06-26binding: network: add scope-platform permission to config.xml.inhalibut_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/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.28.0.68.0.58.0.48.0.38.0.28.0.18.0.07.99.37.99.2halibutMatt Ranostay1-8/+9
* fix indent issues * add urn:AGL:permission::partner:scope-platform to run on platform scope Bug-AGL: SPEC-2575 Change-Id: I070cf2811db4033f231a82276fbf558bd2e8dee1 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2019-06-21tests: network: Add test bindings for agl-service-networkStoyan Bogdanov7-3/+215
- Create the file and folders structure required. for building test bindings. Add all required Cmake files. - Create aft-agl-network.json configuration file for testing binding. - Create network.lua for testing bindings. Bug-AGL: SPEC-2539 Signed-off-by: Stoyan Bogdanov <stoyan.bogdanov@konsulko.com> Change-Id: Ibd93f41751339ecac03dab8e83673da55eafb3f6
2019-06-20binding: network: fix conversion compiler warningsMatt Ranostay1-3/+6
Remove follow warnings by switching from int to size_t warning: conversion from ‘size_t’ {aka ‘long unsigned int’} to ‘int’ may change value [-Wconversion] Bug-AGL: SPEC-2535 Change-Id: I03bb459454d49d9771bc1101338e80c3f394a00e Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2019-06-19Revert "tests: network: Add test bindings for agl-service-network"Jan-Simon Moeller8-213/+885
This reverts commit 089807fbbc4429ede68ef4fa846367345259de36. I need to revert this as it breaks the build and CI due to the failures described in: Bug-AGL: SPEC-2539 Change-Id: Id117df8d3197095efb41967147db1334827d3f80
2019-06-18tests: network: Add test bindings for agl-service-networkStoyan Bogdanov8-885/+213
- Remove agl-service-network-ctl.c from tests folder. - Create the file and folders structure required. for building test bindings. Add all required Cmake files. - Create aft-agl-network.json configuration file for testing binding. - Create network.lua for testing bindings. Bug-AGL: SPEC-2515 Signed-off-by: Stoyan Bogdanov <stoyan.bogdanov@konsulko.com> Change-Id: I9df72a2d9d03189d3917c6e84f633af7603436b0
2019-04-05binding: network: remove versioning references in structshalibut_7.99.1halibut/7.99.17.99.1Matt Ranostay1-2/+2
In order to upgrade to future versions easier don't use versioned structs but the respective typedefs Change-Id: Ib61ed769d16907a7c3842206f2168b503001cac1 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2019-03-28binding: network: docs: add set_property/get_property verbs documentationMatt Ranostay1-0/+40
Change-Id: I926f3a59ed67292e8fb08616864fde7f4000a5d6 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2019-03-05autobuild: fix warnings due to cp command exit errorRaquel Medina2-28/+52
- 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: I58d9040d8f11e05494f5d8a4e3d36cda19170f96 Bug-AGL: SPEC-2164 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
2019-02-25binding: network: fix typo in README.mdMatt Ranostay1-1/+1
Change-Id: I9c0e68a985857e347eb02908c081ba23c345ce55 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2019-02-08binding: network: docs: add cellular example to README.mdMatt Ranostay1-0/+61
Change-Id: I7214e96ec2c25ccd90b7abffbe4be9d778d83d57 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2019-01-23binding: network: add initial README.mdhalibut_7.90.0halibut/7.90.07.90.0Matt Ranostay1-0/+416
Add initial documentation for network service. Albeit not complete but it documents most of verbs + events of interest. Bug-AGL: SPEC-2100 Change-Id: Ie8133e7db6a35e162d3a147c5048313cff95c0a0 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2019-01-16binding: network: remove unimplemented counter functionalityguppy_6.99.4guppy/6.99.46.99.4Matt Ranostay3-87/+0
counter_event wasn't implemented, and the respective reset_counters verb doesn't really have any use. Change-Id: Ibc2142b7f58c06e67430b31307bc7139837c9866 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-10-31Migrate app-templates to CMake moduleguppy_6.99.3guppy_6.99.2guppy_6.99.1guppy/6.99.3guppy/6.99.2guppy/6.99.16.99.36.99.26.99.1Romain Forlot2-5/+9
Bug-AGL SPEC-1682 Change-Id: Idae812ce53bf9cc2ac6e22f7fbc6d66727a73469 Signed-off-by: Romain Forlot <romain.forlot@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: I821c8f73432a4c657277bbfe11f4780ce85f4de1 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2018-08-22binding: networking: add type to simple_gvariant_to_jsonguppy_6.90.0guppy/6.90.0flounder_5.99.6flounder_5.99.5flounder_5.99.4flounder/5.99.6flounder/5.99.5flounder/5.99.46.90.05.99.65.99.55.99.4Matt Ranostay1-0/+1
add G_VARIANT_CLASS_OBJECT_PATH to processing function since it is effectively a string. Change-Id: Ifb079681a840442ee75e755c33abd162db1d9d2a Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-08-10binding: networking: remove global state variableflounder_5.99.3flounder/5.99.35.99.3Matt Ranostay1-20/+25
Switch to the AFB framework v3 functionality to save userdata pointers versus using a global definition. Bug-AGL: SPEC-1660 Change-Id: I71752d3e392b4d8bb00e394f44f414813b83a85d Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-08-10binding: network: upgrade to AFB v3 frameworkMatt Ranostay4-57/+57
Upgrade the binding to use v3 datatypes, and function parameters. Bug-AGL: SPEC-1660 Change-Id: I50b88b8d87a7176917bfa639bc8cffc0bc2bed89 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-08-10binding: network: tests: change default tokenMatt Ranostay1-1/+1
Change the DEFAULT_TOKEN to the AGL default of HELLO Bug-AGL: SPEC-1660 Change-Id: I53b94b76d3f63d566105b35a63cebd3d9cc8ae2d Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
2018-07-24Fix crash in parsing of technology added and removed signalsflounder_5.99.2flounder/5.99.25.99.2Matt Porter1-2/+2
The object path in the TechnologyAdded and TechnologyRemoved signals is provided as a tuple. The binding currently segfaults when receiving this signal since it tries to parse it with an invalid variant format string. Update the format string parameter to reflect that it should parse the object path as a tuple. Bug-AGL: SPEC-1585 Change-Id: I36a588ec43475a24996b9a58c1f326a35d260396 Signed-off-by: Matt Porter <mporter@konsulko.com>
2018-07-11Return service change event arrays in a nested objectMatt Porter1-4/+6
When generating a services event, nest the array of service changes in another object under the "values" key. Bug-AGL: SPEC-1540 Change-Id: Id71bc1863ab564a7f6e4753a7fc082ccbe5a9596 Signed-off-by: Matt Porter <mporter@konsulko.com>
2018-07-10Return technology and service response arrays in a nested objectMatt Porter1-4/+7
The binding currently just attachs a json array to the response object. To make parsing of the reply payload simpler, always attach a json object with the array added to the "values" key. Bug-AGL: SPEC-1540 Change-Id: I1753ec4a2d1c0186e807db004d58d2016c0e8e96 Signed-off-by: Matt Porter <mporter@konsulko.com>
2018-07-10update event namesMatt Porter1-3/+3
Some event names had _event appended to them and there are a couple typos. Fix these to make the naming consistent throughout the binding. Bug-AGL: SPEC-1540 Change-Id: Ia006acd17df371cfe6ff299bb6b420dc7b22a24e Signed-off-by: Matt Porter <mporter@konsulko.com>
2018-07-10remove ping verbMatt Porter1-21/+0
The ping verb was used in testing and is no longer needed. Remove it. Bug-AGL: SPEC-1540 Change-Id: Ia906c2b489f56188e87061ad675330dd29581f97 Signed-off-by: Matt Porter <mporter@konsulko.com>
2018-07-10initial network service bindingPantelis Antoniou17-0/+5234
The AGL network service binding exposes connman apis via the AGL application framework. All network connectivity technologies are supported via the binding, limited only by the underlying connman daemon. Bug-AGL: SPEC-1540 Change-Id: Id73cfc98c7abe97cb655a4fc40d440422fa75803 Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com> [Cleanups to whitespace and naming to match other services] Signed-off-by: Matt Porter <mporter@konsulko.com>
2018-07-02Initial empty repositoryJan-Simon Moeller0-0/+0