summaryrefslogtreecommitdiffstats
path: root/meta-app-framework/recipes-core/af-binder
AgeCommit message (Collapse)AuthorFilesLines
2020-05-07af-main & af-binder: Fix infinite loop and C++José Bollo1-1/+1
af-main: Fix an infinite loop when starting applications * 4818e6c afm-urun: Fix infinite loop on start status af-binder: Fix a missing header when compiling C++ * 68de506 Fix includes of C++ header Bug-AGL: SPEC-3323 Bug-AGL: SPEC-3358 Change-Id: I6a4a82e182914777a877e525fb5be882a224f069 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2020-03-13af-binder: fix bug in reconnectionJose Bollo1-1/+1
When the client reconnected, it used the wrong type and reconnected as server leading to unexpected state with faults. Include: * b15edc1 afb-stub-ws: fix bug in reconnection Bug-AGL: SPEC-3272 Change-Id: I3ad0987be094527f2a3a980a3a99f397b704f3ee Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2020-03-12af-binder: bump and fixesJose Bollo1-1/+1
Includes: * 862fb68b Fix globset compilation warning * 00b0c28f Add gitreview file for icefish branch * 44c40eaa Improves compatibility with AddressSanitizers * ad15fdb2 Fix bug in session and token removal * 38c6516c Fix a tiny issue in the protocol * 591f9d33 Fix bug in C++ wrapper Bug-AGL: SPEC-3040 Bug-AGL: SPEC-3134 Bug-AGL: SPEC-3162 Bug-AGL: SPEC-3220 Change-Id: I975d0130fe2ebefd75decf2ac84b9c5cee1fb622 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2020-01-10af-binder: UpgradeJose Bollo1-1/+1
This upgrade of the binder includes improvement in event handling (SPEC-3069) and minor fixes. Unscription should now be immediately effective as expected, no matter how many subscribe was done. Included commits: * 8828c6be main-afb-client-demo: Fix typo * f3d1f19a afb-apiset: Fix start of apis * 18d28239 AFB.js: pass event name * ca0f859d afb-proto-ws: Improve comment and names * f40979c7 afb-proto-ws: Add message for unexpected event * c6fcbec3 afb-evt: Improve name of listening functions * 36ed9d2e afb-evt: Ensure unsubscribe works * 164f1414 afb-ws-client: Improve direct URI * 65353dce Update copyright dates Bug-AGL: SPEC-3066 Bug-AGL: SPEC-3069 Bug-AGL: SPEC-3087 Bug-AGL: SPEC-3094 Change-Id: I499643564a1026f54b7cfd68f73352561e1d8649 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-12-20af-binder: Fix a critical bugJose Bollo1-1/+1
This fix a critical bug of the binder that lead to memory crash and instabilities. Bug-AGL: SPEC-3066 Change-Id: Ied3756fb7cf0dea423cda1c8367510fc175ab447 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-12-19af-binder: Fix issue when no port definedJosé Bollo1-1/+1
Since introduction of interfaces, it is no more needed to define a port. But the binder was still complaining that no port were defined. Bug-AGL: SPEC-2968 Bug-AGL: SPEC-3014 Change-Id: Ia3d748615641db5f467c3313ff7b02c16608d0ac Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-12-06af-main & af-binder: Partial shift to token logicJose Bollo1-1/+1
This commit includes changes related to integration of token security logic and use of nss-localuser. Changes from af-main are: * 581f99c wgtpkg-install: Add default permissions * 50ab763 Remove tokens * 6008a3e Enforce numeric application IDs * 653562e Introduce localuser interface for applications Changes from af-binder are: * 5026e71 docs(func-service.md): typo * 2243df1 afb-api-dbus: Fix broken broadcast in dbus apis * ff5446e afb-proto-ws: Fix crash on event to disconnected * 1b240e6 afb-hreq: Handle HTTP header Authorization * 29ae81f Introduce object for tokens * 6f59158 coverage: Fix regression * 9a623c3 monitoring: Fix display on connection error * e6908a2 afb-hreq: Handle access_token query parameter * 0d3dc97 Remove refreshing token * 7c67e96 Remove returning token * e08d57c Don't return the uuid * b4da3b7 Move tokens from sessions to requests * e80c1a7 Use afb_token in contexts * d735ff8 afb-session: Expose a local id for sessions * 5ac7bb0 afb-session: remove initial token * 0fd887b u16id: Add maps for identifiers id of 16 bits * eaf5670 afb-evt: Use 16 bits for ids * b55f3cd afb-stub-ws: Enforce asynchronous describe * 7386e1c afb-proto-ws: Change the protocol WSAPI * 74a7ebb afb-error-text: Introduce standard error text * af003cd afb-auth: Increase and improve use of afb-auth * 98b214e afb-hswitch: Update websocket policy * b70caad afb-context: Move credentials to context * d8aff62 afb-context & afb-token: rework token validation * 36094f9 afb-supervision: Improve messages * 354dfe5 afb-perm: separate access to permission db * 93483c5 AFB.js: Enforce single code * c79b6ba Relax constraint on aliases * 7a28ebb afb-socket: Add ability to set a default scheme * 82a9d79 main-afb-daemon: manage listening interfaces Bug-AGL: SPEC-2968 Change-Id: If4751144595c38a69608a962c92b54ae1a976ac8 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-11-14af-binder: Fix callsync hangingJosé Bollo1-1/+1
This bump includes the following changes: * 6f42df1e Improve detection of the bindings * b612db21 sig-monitor: Fix exit in signal handler * 355db4b7 jobs: Fix callsync hanging Bug-AGL: SPEC-2937, SPEC-2907, SPEC-2841 Change-Id: If45bd10e66d3db32790acc4f1c3f57948325c859 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-09-16af-binder: Fix event sending regressionJosé Bollo1-1/+1
This fix a regression described by the jira ticket below: events wasn't sent as expected. Bug-AGL: SPEC-2809 Include the following changes: * 8744669 Fix binding example path & update afb-daemon options * 45a4e69 Make source files relative * 7129df4 jobs: Wake up an event loop if needed * 84d1859 Revert "Make source files relative" Change-Id: If93c26bba71350b4499d54feaebdebb71ad816f5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-08-20af-binder: fixesJosé Bollo1-1/+1
This integrates the following fixes * 3343b4d Fix outdated documents * 6f13ad1 Avoid lock when child dies * ac2ab69 Replace obsolete argument "sessiondir" with "workdir" * 0ea0734 jobs: Add starting mode for jobs * 6599a89 Fix client disconnection close Bug-AGL: SPEC-2714 Bug-AGL: SPEC-2720 Bug-AGL: SPEC-2759 Change-Id: I962f310cf69e72d01c78c0620115cd2d66586e2c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-08-20afs-supervisor: Start the service on needJosé Bollo1-1/+1
afs-supervisor.service failed to start the supervisor due to a non available activation socket. This change start the api socket and will activate the service on need. Bug-AGL: SPEC-2753 Change-Id: I2fd3c2d2d29bce8d70becaba0792918d6f6c0769 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-08-01af-binder: Fix error in synchronous callsJosé Bollo1-1/+1
There fixes a bug with an inversion between info and error in implementation of synchronous calls, leading to bad detection of errors. Includes: * 6bb714c afb-xreq: Remove field 'listener' * d325856 afb-binding.h: Ensure json-c/json.h is sourced * 056c53d AFB.js: Improve default token discovery * daecef1 supervisor: Setup services for local API use * 687d90d Fix detection of error in call synchronous Bug-AGL: SPEC-2697 Change-Id: I20cf2d5219e7cc962862b604e642610b0f8a75b1 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-07-23af-binder: Fix circular broadcast of eventsJosé Bollo1-1/+1
Include changes: * 6fe59e2 uuid: Add module for UUID generation * 5b59688 afb-evt: Refactor processing of broadcasted events * 6dfeafe Tag broadcasted events with UUID and hop * 51ab7c2 Fix bad memory access at client disconnection Bug-AGL: SPEC-2625 Change-Id: Ifa81293a783d5119d7a3d4c33598e1eb865e703c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-07-13af-binder: Fix of subscribe issueJosé Bollo1-1/+1
Enforce serialization of messages, makes event really asynchronous, and enforce (un)subscribe in living request. Include the following changes: * 909893e afb-evt: Improve compatibility to guppy * 248ec5d afb-evt: send events in separate job * c8cc0d6 Revert "afb-stub-ws: Allow unordered process of messages" * bc38af3 afb-xreq: Forbids (un)subscribes after reply * 0342cd1 afb-client-demo: Allow pipe of messages Bug-AGL: SPEC-2215 Bug-AGL: SPEC-2219 Bug-AGL: SPEC-2542 Bug-AGL: SPEC-2599 Change-Id: I357aeb852e2041ac6056dd563dac42f29dadb52d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-07-09af-binder: Fix supervision socket nameJosé Bollo1-1/+1
A typo in the recipe of af-binder avoided to correctly define the supervision socket. Bug-AGL: SPEC-2621 Change-Id: I47dcd94e5454d85d9b5994d4f82a0f8abb400000 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-06-13af-binder: Add recent improvements and fixesBechir Mghirbi1-1/+1
Bump af-binder revision to include the following: * 5026438 Build af-binder-devtools-native using GCC-9.1.1 * d6f6df8 afb-daemon: Add /tmp has fallback for uploads * f9c7430 jobs: Fix infinite wait lock * 02fe255 Fix afb document typo. * 4da9c71 afb-export: Fix requirement on multiple apis * 5d57096 coverage: Add test of AFB_DEBUG_WAIT * 216666e coverage: Allow to run coverage everywhere * d00bfe9 Allow to tune installation directories * 5214323 doc: Improve comment on asynchronous calls * 6401efb binding-wrap: Rework of context handling * 13457f6 samples: wrong parameter for get_new_board() * 78fcce2 Merge changes Id24d9bb0,I6807ed25 * 92c9d33 change style initialization of struct afb_auth * b369498 missing full initialization for struct afb_verb_v3 * a1e6d2c Merge "afb-migration-to-binding-v3: fix broken links" * a4cf888 afb-migration-to-binding-v3: fix broken links * 036629f Fix small issues * 8f12ffa coverage: Update Makefile * 6b2b09d Reordering of sample and tutorial bindings * 9cf1fce Fix rpm packaging following review 20926 * c80873f Change agl-app-framework-binder.sh BUG-AGL: SPEC-2482 Change-Id: Ied029a20edffd1ac2b347c94819f230a38d3d0b4 Signed-off-by: Bechir Mghirbi <bechir.mghirbi@grammer.com>
2019-04-30af-binder: New packagingJosé Bollo1-28/+53
Improve how the binder is packaged. Bug-AGL: SPEC-2165 The issue was that the debug symbols were not at the expected place. It came from the way bitbake packages debug meterials: the first package with -dbg extension receive all the debug items. Change-Id: I2f5470ded58bc782c9a9804373a5eb76b331f5ae Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-04-09af-binder: Add recent improvements and fixesJosé Bollo1-1/+1
Includes the following changes: * 51b8ff0 Prevent false positive during check source * 6b70202 coverage: Allow removal of valgrind * bf7fe72 jobs: Clean unneeded code * 418ba12 watchdog: Isolate the watchdog from jobs * d7e4fab Rename afb-systemd to systemd * c330ecf system & jobs: Reverse link and acquiring events * d9de3cd evmgr: Isolate the event loop from jobs * 5715fd5 afb-args: Use secure_getenv * 5011060 sig-monitor: Add compiling switches * a2cf84e hooks: Allow to remove hooking (and/or trace) * 84f4aec Rename afb-config to afb-args * 8214e88 evmgr: Fix a "maybe uninitialized" issue * 50deefa Workaround an exit issue * 901a38c jobs: Refactor exiting jobs * 2ba7c20 Improve setting of options * ec0564b Add conditionnal support of bindings version 2 * 16f014e Add conditionnal support of dynamic bindings * 60cd117 Fix false ***buffer overflow*** detection * ce53d8e afb-export: Fix heap corruption Bug-AGL: SPEC-2292 Change-Id: If4540a3dc58df208ecb3ee7de363d29317bfb903 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-03-25af-binder: Ensure validy of event loopJosé Bollo1-1/+1
In rare circumstances during intialization threads should wait instead of using a null event loop. This is because no one has needed event loop at this stage of initialization. Change-Id: Ie5c1f86f80d7b90234cedabb07186058e6b2d45f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-03-15af-binder: Fix lock issueJosé Bollo1-1/+1
This includes: * ff2b8be Upgrade dependency to libmicrohttpd version 0.9.60 * c829f91 Fix build dep on OBS * 5425e05 afb-stub-ws: Allow unordered process of messages Bug-AGL: SPEC-2219 Change-Id: I037a158a32d8673ba8df00658d30e745516944a9 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-02-18af-binder: Fix concurrent issue SPEC-2163José Bollo1-1/+1
Include the changes: * 44248c6 Set next version of binder * 043c27c Update copyright date * 6415858 afb-stub-ws: Fix concurrent memory issues * f47f9d8 stress: Improve the stress test scripts Bug-AGL: SPEC-2163 Change-Id: I6ae7948de56aa698c3aa9e82617abc504477d326 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-02-06af-binder: bump to latest revision (fix SPEC-2161)Stephane Desneux1-1/+1
Includes changes: * fcd68bb jobs: Ensure releasing event loop Bug-AGL: SPEC-2161 Change-Id: Ief7a439a857c42435c2b9c93e218fcf5533eb1e4 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2019-02-05af-binder: Fix multithreadingJose Bollo1-1/+1
Ensure activation of multithreaded handling of requests. Includes: * bb5dd7a afb-proto-ws: Serialize incoming message * e9c6530 jobs: Refactor event loop handling * 48df1b4 jobs: Separate internal threads from others * 2ff91c0 jobs: Remove conditionnal REMOVE_SYSTEMD_EVENT * 0c68d46 afb-hsrv: Avoid call to getnameinfo * 194031d hello3: Fix warning unused variable Bug-AGL: SPEC-2133 Bug-AGL: SPEC-2089 Change-Id: I7a9f8ede2309b0eb58c0b83abd03023f5a01eb30 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-01-05af-binder: bump revisionStephane Desneux1-1/+1
This following changes are included: * 1bce833 afb-api-v3: Fix potential buffer overflow * 3bb9874 afb-binding-v3: Fix issues in includes * eb9be95 packaging: Remove hard dependency to samples * 7508331 hello3: Add verb 'after' * 7916ea9 bindings/samples: Cleanup and tiny comment Change-Id: Ifa0f941e22096b46278951f6e8fa939d3215803d Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2018-12-31af-binder: Fix lock of sync/async callsJose Bollo1-1/+1
Bump to the version that fix the lock of call in multi-threaded case. Bug-AGL: SPEC-2089 Change-Id: I21baf120398f89cda3dfba06c44fa4773cda04c4 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2018-12-13af-binder: UpgradeJosé Bollo1-1/+1
This upgrade includes 4 commits: * bc247d4 globset: Introduce globset for event handling * 13a5afe Fix deprecation warnings for older GCC versions * 3f2e3d9 afb-hook: Improve reentrancy of hooking * 9295a52 afb-proto-ws: Add error report Change-Id: I91a493f1a2288a27f311171dc8b9ebe29c8a24a2 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-11-22app-framework: Update versionsJosé Bollo1-1/+1
af-binder changes: * 153a7c9 AFB.js: Tiny improvement and space fix * eca8f3d afb-socket: Fix address reuse * 42099d3 afb-export: Fix error in event handling * 83c9e99 main-afb-daemon: Export variables to connect to binder af-main changes: * bceaf2c afm-system-daemon: Improve error message report * 44c70fd Treat correctly running/not running status * 94176d9 afm-unit: Export new variables Change-Id: Ifdb631d8155032f72b4497400fdbd935547c7782 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-11-06af-binder: Bump versionJosé Bollo1-1/+1
Includes * 875007d afb-socket: Relax requirement of tcp ending slash * 8754e33 afb-socket: Handle listening on all interfaces * f3048dc samples: Fix compiling error * 68fb4de afb-hsrv: Adapt to next version of libmicrohttpd * dfe85ca Added an option to color out the ouput * 61a0151 afb-session: Add language to session * c1c4973 monitoring: Fix naming of apis * 6b0b904 Make profile.d file consistent between rpm and debian * 5ee4995 afb-apiset: Reorder priority of messages * db0e684 AFB.html: Allow to call any verb of any API * 6c9e231 afb-hsrv: Lower the "no handler" message * deaf209 APIv3: Allow to write application binding * 86e4c17 afb-api-so-v3: Keep root API in all cases * fd57dbf genskel: Fix issues for C++ bindings v3 * 40fa7ea packaging/deb: install all headers * 9ce66be Fix native deb pkg install dependency * 195a03d afb-export: Emit a warning on bad 'afb_require_api' call * efd6d20 afb-socket: API name cares of abstract UDS * c19ce12 afb-session: Fix an issue in managing sessions * 80c96d7 CMakeLists: Use AGLVERSION if set Change-Id: Ie6a5efa651f5e9b9fab207f216514552993edfa5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-09-14af-main & af-binder: Set version from AGLVERSIONJose Bollo4-0/+5
Change-Id: Ie1ff83f007d9d8d819829540d51e576f088c97eb Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2018-09-09af-binder & af-main: Update to version 5.99.FFRC6José Bollo1-1/+1
This includes the following binder changes (from newer to older): * 29f544b afb-apiset: fixed the error message upon api open. * 8647a34 afb-session: Use ad-hoc pseudo-random uuid * d3edd5f VERSION 5.99.FFRC6 * 72385ab main-afb-daemon: Export API after initialization * 408acbd app-framework-binder doc: Changed doc to fit new format. * a02a162 Allow choice to trap or not program faults * 5dd7df3 main-afb-daemon: Set AFB_ROOTDIR and AFB_WORKDIR in environment * 8706522 afb-hook-flags: Fix a compilation warning Bug-AGL: SPEC-1655 Bug-AGL: SPEC-1724 Bug-AGL: SPEC-1694 Change-Id: I3d7b191322e6fbea94ea7345979f3b80da988d8c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-08-24af-binder & af-main: Bump to version FF-rc4José Bollo1-1/+1
It include for the binder 3 important fixes: SPEC-1668, SPEC-1669 and SPEC-1681. Changes of app-framework-binder: * jobs: Abort when systemd's event loop lost * afb-stub-ws: Add reconnection of ws-clients on need * afb-stub-ws: Safe handling of deconnections * afb-stub-ws: Process error on call to remote * Send error replies on disconnection * afb-wsj1: Split 'wsj1_on_text' in 2 * afb-stub-ws: Clean up * afb-api-ws: Use afb-socket features * afb-socket: Improvement * afb-stub-ws: Improve naming * hello3: Add mutebug * Set version to 5.99.FFRC4 * Provide functions afb_service_call[_sync]_legacy Changes of app-framework-main: * Set version to 5.99.FFRC4 Bug-AGL: SPEC-1668 Bug-AGL: SPEC-1669 Bug-AGL: SPEC-1681 Change-Id: I99b129a1722f1d3182205bc07de449b6ed034002 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-08-20af-binder & af-main: Add external binding featureJose Bollo1-1/+1
This feature is needed for testing. Change-Id: I5c9cd33c57bfd6c939bb56d4ddb0c153ffc69dc7 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2018-08-03af-binder: UpgradeJosé Bollo1-1/+1
This upgrade include bug fixes and the ability to set variables for bindings. The included changes, from newest to oldest, are: * 3aa0f4d Fix warnings and false errors * de0527f afb-export: Manage path of libraries * 5ef271e Add ability to provide binding settings * e39610f Improve parsing of json string * 10aa15a afb-socket: Separate socket creation * df67c02 tic-tac-toe: improve event handling * b4455a7 afb-msg-json: remove obsolete function * f70e19a afs-supervisor: Improve comments * 4772c56 coverage: Improve coverage test * 4bbad5b afb-export: Set API context as validated * 61b54dd main-afb-client-demo: Exit with a significant code * 635772b Tune dependency to fdev-epoll * 9cbff28 afb-api-v3: Simplify the code * 8d4e6df fdev: Simplify the code * 1bc9713 coverage: Add inet's API test case * 9c2e6e4 Fix some more memory leaks * f96bbb4 afb-config: Rewrite the config as JSON object * fe9601c Fix tiny documentation bug * 8d95d38 main-afb-daemon: Reorder instantiation of API * 77ca8b4 json-c: Remove escaping of slashs * e17ae41 coverage and test: Add tests * 4c0f6ce afb-api: Define the function afb_api_is_public * f44a28a Tiny documentation fixes * a4fd4bd afb-export: Fix event handler of API Change-Id: I8f29701be8f9add9506fc6038bac968bfb63d2b8 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-07-20af-binder: Bug fixesJosé Bollo1-1/+1
This upgrade include this following commits * 59d2f19 afb-config: Simplify version print * 1634f34 afb-trace: Fix bug on uuid of session's events * e9eac35 afb-trace: Fix bug in session handling * b798adf Fix errors in migration to V3 Bug-AGL: SPEC-1595 Change-Id: I6c195b2a7c48d12bfc175f8d6206727637ff16ec Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-07-11af-binder: Remove call to niceJosé Bollo1-1/+1
Bug-AGL: SPEC-1578 Bug-AGL: SPEC-1544 Change-Id: Ib9c73f05c6b5d945e27529c857a73eae33c12f40 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-07-10Application Framework: Fix bugsJosé Bollo1-1/+1
Bump to latest bug fixes: * Fix crash when no icon is set in the config.xml * Fix tiny memory leaks in the binder af-main: * 259d262 wgtpkg-install: Fix SEGV when no icon in config file af-binder: * c98c0d9 coverage: Improve testing * 42b655f hello2: Add a binding v2 example * 298f697 hello3: Fix a bug * 10ac210 afb-api-v3: Fix a bug introduced by 8ca7b69 * 7491c74 afb-cred: Fix memory leak * 44b2477 coverage: Add valgrind diagnostics Bug-AGL: SPEC-1573 Change-Id: I8843b406502b66ff78c4dabb3fca72d41323bb45 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-07-06meta-app-framework/af-binder: bump to latest master revision for (version ↵Stephane Desneux1-1/+1
5.99.FFRC2) This patch bumps app-framework-binder to latest revision. This includes the following changes on the binder: * 171e010 Update version to 5.99.FFRC2 * 95ad001 Simplify build by introducing queuing function * 12ec841 Remove uses of deprecated macros * 75526aa supervision: Exclude conditionaly the supervision * 0d05349 Simplify build process * 65bbbd7 locale-root: fixed uninitialized variable * 425458b afb-trace: Fix bug in tracing of afb_req_get_client_info * 26286eb afb-client-demo: Fix bug that forbids interactive behaviour * eb0abe2 afb-req: Fix a bug in afb_req_verbose * c8dcf6b saha -> salam: To continue using hello * ddbabdd doc: Tiny improvement * 4f7f5ae Improve readdirs to follow symbolic links * f645c76 coverage: Add the missing files * 57e0934 coverage: Add coverage test * 1f9e60c main-afb-client-demo: Allow scripting * b474ee6 afb-autoset: Automatic prefix with unix: * 8ca7b69 afb-api-v3: Refactor verb description * b28c89d afb-api-so: accept symbolic links for bindings * 176d14b hello3: Add verbs * cd6d449 api-v3: Add monitoring of faults in preinit functions * 211343c afb-client-demo: Add option to keep running Change-Id: If74f48e2820615cc8618145eac4042a432d39ec1 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2018-06-22af-binder: Upgrade to binding v3José Bollo1-1/+1
And also upgrade af-main to use new feature. This new version brings the the following features: * Dynamic api * Event handler * Automatic bounding to unknown api * Improvement of subcalls * Improvement of supervision Bindings v2 are still supported but are deprecated and will be removed in some future. CAUTION: Bindings v1 and vdyn are removed. Bug-AGL: SPEC-1511 Bug-AGL: SPEC-1020 Bug-AGL: SPEC-1485 Bug-AGL: SPEC-1400 Bug-AGL: SPEC-1126 Change-Id: I0ecc513601cfc7f571f2a3ff90095496b32491d3 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-03-16af-binder: Bug fixJosé Bollo1-1/+1
This fix bug in connection of websockets. It appears that the bug is herre since months but was not detected before 14th March 2018. Also, include a fix for future version of libmicrohttpd (newer than 0.9.59). Bug-AGL: SPEC-1345 Change-Id: I6f13c437255fc2079361a61dd274163e39822522 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-02-27af-binder: UpgradeJosé Bollo2-3/+18
Improvements: - addition of supervisor (in devel mode) - handling of mimetype - integration of systemd watchdog - refactor of code handling sessions - hooking of sessions - started: isolation of systemd event loop - started: test of the code Fixes: - exclude directories starting with dot (.) from search to avoid issues with debugging libraries - memory leaks - session leaks - segmentation fault on disconnections - robustness against time adjust Bug-AGL: SPEC-1293 Bug-AGL: SPEC-1296 Bug-AGL: SPEC-1303 Change-Id: Idb7908b8a4148a052c72aa662e1d453356d8e40d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-01-10af-binder: Add C++ feature to genskelJosé Bollo1-1/+1
Two evolutions: - the development tool afb-genskel accept now the options --cpp or -x to produce an output for C++ bindings - improved termination on exception (SIGINT, ...) that coulded drive to infinite loop when error was reached (SIGSEGV). Bug-AGL: SPEC-1217 Change-Id: Iec22ffc7d9f99ccfdd20c2f9005968ab98d20a9b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-12-07af-binder: Make weak ws-client by default (to be fixed)José Bollo1-1/+1
The case of unicens service that can be here or not creates problem to the binding 4a when the service is not here. This commits makes the requirement of ws-client socket optional. This unblocks the situation but need to be fixed later, for example, by introducing an explicit weak requirement. Bug-AGL: SPEC-1151 Change-Id: If935974eb5eeef1238e835ab4b0a46011bfb51b4 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/12323 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Stéphane Desneux <stephane.desneux@iot.bzh> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-12-01af-binder: Fix hangup on long messagesJosé Bollo1-2/+1
Fixes: - Handle correctly the sending of very long messages. Improvements: - Better handling of sd_event loop - Allows settings of afb-daemon options by environment: AFB_TRACEREQ, AFB_TRACEDITF, AFB_TRACESVC, AFB_TRACEEVT, AFB_LDPATHS Bug-AGL: SPEC-1091 Change-Id: I1bf8d52bf3ab8f1c73a524c0030b388570d08da8 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/12193 Reviewed-by: José Bollo <jobol@nonadev.net> Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-11-22af-binder-devtools: Align to use app-framework-binder repoJosé Bollo5-39/+41
The development tools of af-binder are better provided by af-binder itself in the repository app-framework-binder. This is better for support and evolution. Bug-AGL: SPEC-941 Change-Id: Ib283c36bc6194f793fd61c7844191e3187fe3bed Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/12059 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-11-20Move genskel to af-binder-tools recipesJan-Simon Möller1-0/+19
This change fixes SPEC-941 and the HAL build by providing the needed afb-genskel for build by recipe and as part of the SDK. v2: move to af-binder folder and align naming to af-binder-devtools add nativesdk-af-binder-devtools to packagegroup nativesdk-packagegroup-sdk-host add af-binder-devtools-native to packagegroup packagegroup-agl-app-framework v3: move af-binder-devtools-native to aglwgt as DEPENDS as there is no -native package to add to the packagegroup-agl-app-framework Bug-AGL: SPEC-941 Change-Id: Iae3c8d958000623b1c84db896307032f5033477d Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/12033 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
2017-11-17af-binder: Fix autolock in protocolJosé Bollo1-1/+1
A lock happened when a binding made a synchronous call in an event callback. Bug-AGL: SPEC-1091 Change-Id: I33793ff6755c339308a418fbd93b43227ca1cec2 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/12041 Reviewed-by: Stéphane Desneux <stephane.desneux@iot.bzh> Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Matt Ranostay <matt.ranostay@konsulko.com> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-11-14af-binder: Improve monitoring of eventsJosé Bollo1-1/+1
Fix an issue when monitoring events created by local bindings. Change-Id: If8c4513cacf2c33eccdcd4a9a58178d91095cc41 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/11901 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Matt Ranostay <matt.ranostay@konsulko.com> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-11-12af-binder: Bug fixes and improvementsJosé Bollo1-1/+1
- fix lock error - fix default token - improved management of sessions Change-Id: I9e7518f091da7ceeb1c66a90873a24f82de2dabf Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/11873 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-11-05Allow SRCREV handling through poky-agl.confJan-Simon Möller1-1/+1
This change simplifies the SRCREV handling by using - AGL_APP_REVISION and AGL_DEFAULT_REVISION in recipes. Also the AGL_BRANCH can be used to switch to release branches. Bug-AGL: SPEC-864 Change-Id: I9384c85d4f7434416d87359f88c482887ac2ead8 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/11685 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
2017-11-03af-binder: Bug fixesJosé Bollo1-1/+1
* fix a bug in handling of event loop that consummed 100% CPU and reached assertion failures * fix a file descriptor leak in handling API sockets on server side * ensure non interleaved log messages * fix lack of 'noconcurrency' flag in creation of dynamic apis Also allows javascript client to set their "callId" explicitely. Change-Id: I28b4f9c2543e3d184b55fc63e0a1c46752450be3 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/11677 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-boot-test: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>