summaryrefslogtreecommitdiffstats
path: root/meta-app-framework/recipes-core/af-binder
AgeCommit message (Collapse)AuthorFilesLines
2019-04-11Application framework: bump and fixesJosé Bollo1-1/+1
For af-main: * 598f374 Add ability to manage all widget/applications For af-binder: * 4789efd jobs: Ensure validy of event loop * 75a6b9e Prevent false positive during check source * bc8929b Fix false ***buffer overflow*** detection * f878e80 afb-export: Fix heap corruption Bug-AGL: SPEC-1850 Bug-AGL: SPEC-2272 Bug-AGL: SPEC-2292 Change-Id: If64eb30677d880c68d504765ed7d3b2744d8ffe0 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-03-14af-binder: Bump to cherry picked fixesJosé Bollo1-1/+1
This includes: * Fix build dep on OBS * afb-stub-ws: Allow unordered process of messages Bug-AGL: SPEC-2219 Bug-AGL: SPEC-2251 Change-Id: I1b5ce5263731de2f232945b0840e8b86edec2740 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-02-08af-binder: Fix concurrent memory issuesJosé Bollo1-1/+1
This changes takes care to increment the the count of reference before using it. Bug-AGL: SPEC-2163 Change-Id: I598b15bcd7c5cfde632f60bc63a4181e3e82307e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-02-07af-binder: bump revisionStephane Desneux1-1/+1
Included changes: * 8b58a16 jobs: Ensure releasing event loop * 4bb7ed6 Set default version to 7.0.0: GRUMPY GUPPY * 3facd51 Add gitreview file for guppy branch * 77bf8a3 Merge changes from topic 'spec-2089' * 194031d hello3: Fix warning unused variable * 0c68d46 afb-hsrv: Avoid call to getnameinfo * 2ff91c0 jobs: Remove conditionnal REMOVE_SYSTEMD_EVENT * 48df1b4 jobs: Separate internal threads from others * e9c6530 jobs: Refactor event loop handling * bb5dd7a afb-proto-ws: Serialize incoming message * a4bb03e packaging: update dependency on libmicrohttpd version * a785953 Merge "afb-api-v3: Fix potential buffer overflow" Bug-AGL: SPEC-2089, SPEC-2133 Change-Id: I9aa7fc1e33b57e4de629f6d1c4e241aed68b2888 Signed-off-by: Stephane Desneux <stephane.desneux@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>
2017-10-24af-binder: Extend maxlength of websocket messagesJosé Bollo1-1/+1
The default maxlength of 65000 bytes is too limited. This commit extends the maxlength to 1048500 bytes. Also includes minor improvements and fixes. Bug-AGL: SPEC-981 Change-Id: Ic891ae90bbdd5ec94310bfc3aea1fb30f6e80077 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/11491 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-10-14af-binder: upgrade to 4.99-EERC1José Bollo1-1/+1
This includes: - Correcting license reference to align with code - Internal refactorings - Dynamic bindings API and pure dynamic bindings (still to document) - new request functions: afb_req_get_application_id, afb_req_get_uid - C++ interface - libafbwsc featuring direct ws API - Bugs and typo fixes Change-Id: I75a387524f0745ed23311fe43a43000240bb6f09 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/11299 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>
2017-09-15App-FW: Update namings and bug fixesJosé Bollo1-1/+1
af-main: ======== - set the version to 4.1 - make names of binder revelant for ps and journal: afbd-APPID - reduce the default verbosity to WARNING - when AGL_DEVEL - set default token to HELLO - include --monitoring - set the verbosity to NOTICE - fix subpath of libraries to 'lib' always - fix --no-httpd option af-binder: ========== - set the version to 4.1 - verbosity distinguishes WARNING and NOTICE - enforce use of AFB_ prefixed verbose macros - report verbose message in monitoring - check that API of --ws-server exists - atomically dump the stack on signals - fix starve bug (MAJOR) - fix @t bug on random token (CRITICAL: SPEC-854) - fix subcall bugs (MAJOR) - fix possible SIGSEGV in dlopen (MAJOR: SPEC-662) - fix memory leak when upgrading protocol Bug-AGL: SPEC-854 Bug-AGL: SPEC-662 Change-Id: Ifb7aee5e72c5f9d738c11b9b24e7e07b128e80fc Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10763 Reviewed-by: José Bollo <jobol@nonadev.net> Reviewed-by: Stéphane Desneux <stephane.desneux@iot.bzh> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-08-30meta-app-framework: bump binder to 170aef2Stephane Desneux1-3/+4
Major changes: * monitoring: add option --monitoring and enable UI * afb-config: rework on option --random-token * afb-config: Add short -p option for --port * Add option --no-ldpaths to avoid default ldpaths * Add option --weak-ldpaths (for weak loading path) * Bug fixes Change-Id: Ieb02ff71ad0157b3bc754e7a163c860caedf72b5 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10709 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-08-21af-binder: bug fix and feature improvementsJosé Bollo1-1/+1
fixes: - webkit connection on websockets (SPEC-821) - over allocation of sessions - send error reply for unreplied requests - unprefix event name - infinite loop when events overrun counter - better handling of NULL improvements: - added trace facility of monitor builtin API - dump of stack on SIGABRT - facility afb_req_subcall_req - reduced verbosity - debugging enhanced: allow break after wait and call to 'personality' - documentation Bug-AGL: SPEC-821 Change-Id: I90f16aca97613616e7f2fb4bb85c052ae16c0cde Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10609 Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Romain Forlot <romain.forlot@iot.bzh> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-07-25af-main: Install debugging features when agl-develJosé Bollo1-0/+1
When agl-devel is required, installs the debugging feature needed by XDS. Also, improves AGL_DEVEL setting of af-binder. Bug-AGL: SPEC-659 Change-Id: I90a1ecbaf78b860ded4f3a70d81ab6312d40772e Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10333 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-07-17af-binder: Fix const issue in afb-auth.hJosé Bollo1-1/+1
The fields type and loa were declared as const. This worked well for C compilers that are allowing to initialize constant fixed structures. But when compiling with C++, it is no more easy to create initialized structure explicitely. In C++, the solution is to use C++14 constexpr functions. But for using these function, const must be removed. Bug-AGL: SPEC-741 Change-Id: Ia1b156b174166821a0246e603171193757e67ebe Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10195 Reviewed-by: Matt Ranostay <matt.ranostay@konsulko.com> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Changhyeok Bae <changhyeok.bae@gmail.com>
2017-07-11Upgrade framework and binderJosé Bollo1-1/+1
This includes: - improvement of debugging (indication files) - not listing terminated processes - allow widget to not define icon (service) Bug-AGL: SPEC-702 Bug-AGL: SPEC-728 Bug-AGL: SPEC-729 Change-Id: Iee1f0df036a5708dfae169ac08ce281187f51f6f Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10147 Reviewed-by: Matt Ranostay <matt.ranostay@konsulko.com> 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>
2017-07-07framework: update DAB for RC3José Bollo1-1/+1
This change includes - bug fixes - Fix bad error reporting (and of the not funny "Inappropriate ioctl for device") - Fix libmicrohttp version dependency - Fix start actions order - binding v2 improvements (SPEC-717) - reintroduce the field <info> when describing fields - enforce V2 binding writers to use AFB_ prefixed logging macros - make error status uniform even for call & subcall - debugging features (SPEC-729) - allow to export the http port in afm-unit.conf - enable setting of breakpoints/waitpoints when compiled with AGL_DEVEL Bug-AGL: SPEC-717 Bug-AGL: SPEC-729 Change-Id: If66e5524e6621107c7417f26439f90e7d47db89d Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10089 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-07-07Framework: Leverage agl-devel and set PVJosé Bollo1-0/+4
It is time for the framework to include development specific features intended to be used when developing applications. This commit prepares such use. See: AGL-Bug: SPEC-594 It also changes the version PV to point the correct AGL distribution/branch and git commit. Change-Id: Ib6abbc3d83ee3eecb79b574f988b430221c45b33 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10085 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-06-29afw: Fix error reportJosé Bollo1-1/+1
Also adds minor improvement in logging for the binder Change-Id: I34a56ed72fdedca3645c179e73978ff919860ecc Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9921 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-06-14Framework: fix and upgradeStephane Desneux1-1/+1
App-framework-main: - Fix lack of error message on mustach issue - fix binding version to 1 - Fix service name within socket units App-framework-binder: - Removes reference to NULL in includes - Add comment for bindings v2 - Fix issue in using systemd socket activation - Moves tic-tac-toe sample to V2 - Refactor of the documentation Change-Id: I16361ef29634edc3cead0492caea1a49b4a61d3e Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9725 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-06-08Framework: Fix and upgradeJosé Bollo1-1/+1
App-framework-main: - Deinstallation of units - Fix lack of message when setting exec bit App-framework-binder: - Binding V2 proposal finalized - Human readable option for afb-client-demo - Cleanup and improvement of API - Logging by request - Relax authorization for self - New hooking/tracing features (options --tracesvc and --traceevt) - Fix of many bugs AGL-Bug: SPEC-644 AGL-Bug: SPEC-645 Change-Id: Id980ebda486105044f9685ba50639a81766a7d72 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9609 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-05-22appfw:fix dep in af-binder-dev on af-binder-toolsStephane Desneux1-1/+1
The dependency between af-binder-dev and af-binder-tools prevents af-binder-dev to be installed properly in SDK Bug-AGL: SPEC-609 Change-Id: I3cc4e8bb98234147f686e39011944d313328dcea Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9461 Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-05-16af-binder: changes the packagingJosé Bollo1-7/+13
Create a new package: af-binder-tools that contains 2 tools: - afb-client-demo: the tiny websocket client of the binders - afb-genskel: the code generator for bindings version 2 (DRAFT) Also includes a fix on signal internally used for timers. Change-Id: I7e4241266e5736d3e3b3aeff5efd150821ff1d3c Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9395 Reviewed-by: Matt Ranostay <matt.ranostay@konsulko.com> 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> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-05-12Upgrade af-binderJosé Bollo1-2/+2
This is a major upgrade. It includes: * Use upgrade abitlity of libmicrohttpd 0.9.54 * Bugs, concurrent and typo fixes * Add 'afb_daemon_queue_job' for bindings * Integration with cynara * Internal refactorings and improvements * Draft of monitor API * Draft of version 2 of bindings * Draft of skeleton generator for bindings Change-Id: Iaca30840daa89ecc70a9875d2fb1cc013014eea4 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9351 Reviewed-by: Matt Ranostay <matt.ranostay@konsulko.com> Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org> Reviewed-by: Changhyeok Bae <changhyeok.bae@lge.com> Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2017-03-27Upgrade application frameworkJosé Bollo1-1/+1
This is the last upgrade of the application framework before the switch to the systemd integrated application framework. Changes for AF-BINDER: ---------------------- - removal of legacy file include/afb/afb-plugin.h - removal of legacy call to readdir_r - allowing to repeat option --ldpaths - new options: --no-httpd, --exec, --random-token - reintegration of libmagic for content-types - fix crash on unhandled request - capable of socket activation by systemd Changes in AF-MAIN: ------------------- - handling of JSON-pointers in template unit - fix a bug in mustach evaluation - error message improvement - added afm-util commands: run-remote and start-remote - switch to cmake 3.4.3 - fix bug in file content helper - fix bug of labelling files that made issue when uninstalling Change-Id: Id18c5ff1edb2a7dee3813e996aed6300bcd97036 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2017-03-27Add missing DEPENDS to af-binderJan-Simon Möller1-1/+1
To fix WARNING: af-binder-1.0-r0 do_package_qa: QA Issue: af-binder rdepends on libcrypto, but it isn't a build dependency, missing openssl in DEPENDS or PACKAGECONFIG? [build-deps] openssl is added to DEPENDS. Change-Id: Ib1d38f8041e053f7c706fcb2cc187aad765aa9c4 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2017-03-27Activates threading and hook featuresJosé Bollo1-3/+2
Activation of threading was delayed until CES demo. Now that CES demo is on, threading can be activated and tested in real. This also enables new features: - Compiler fixes - Hooking of requests (for debugging) - Change in handling option --roothttp - Documentation improvements - Minor internal improvements and cleanup Change-Id: I4c7052697a83c3d49a283970c502c62a5d3ddd64 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>