summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2016-08-25add algorithm to seek for locale filesJosé Bollo3-0/+821
Change-Id: Ie4355db29b157b13c4d93011337b15ca3e5d2571
2016-08-25adds accepted lang to global hreqJosé Bollo2-0/+2
Change-Id: I6b820e7ab169897259414276eaa0b1f8847d9229 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-08-25makes a function to ensure trailing slashJosé Bollo3-13/+24
This function is usefull to ensure that links to otherfile are epanded to directory/otherfile (not directoryotherfile!) Change-Id: If8ad1c275598b322516c41706b464d5d90067a8e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-08-25factorise code for alias handlingJosé Bollo1-15/+15
Change-Id: Ia60b50b1e4f859c2ee69919d5f63349af40865b6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-08-09fix tiny memory leakblowfish_2.0.22.0.2José Bollo1-0/+1
Change-Id: I7ad19eeb73c613893682824d6becc500277d01d6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-08-08fix blocking readJosé Bollo1-0/+2
Change-Id: I7e39d4ce7c0f83e3398f344ade7e5114cf203efb Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-08-08fix on_event for servicesJosé Bollo1-0/+1
Change-Id: Id90d53764016abc16db6f4d4fb68b9e16ba492fb Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-08-08cleanup of unused variablesJosé Bollo1-8/+0
Change-Id: I895901fb5af2811d79a96aa0baa7981a5c9f9b3a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-08-08add validity functionsJosé Bollo2-0/+20
Change-Id: I56f4f6aebe673363c8b07c55f68ebbb1362b04fc Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-08-07removing casts to (void*)blowfish_2.0.12.0.1José Bollo1-36/+61
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-08-07fix tiny memory leakJosé Bollo1-0/+1
Change-Id: I8183da55b6afb0e2d3035ebe8cf371b181ec4257 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-08-03removing casts to (void*)José Bollo1-18/+25
Change-Id: I34a4444c1fe8b9fa81c5319f53d154d6fe93916c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-08-03websocket transparancy for C/S bindingsJosé Bollo4-0/+1352
Change-Id: Ia78621ca4d3298fd45f3486ee64c3785c8ab6d8d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-08-03afb-ws: adds function afb_ws_is_connectedJosé Bollo2-0/+9
Change-Id: If7f3a2b9a724f28dbd3e4968347892d837ba875d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-08-03api-dbus: improves 'dbus_req_json'José Bollo1-1/+2
Change-Id: I6d63d70d30f02422e5f9904722e89f92358186b9 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-08-02update bindings to the new namingJosé Bollo7-36/+36
Change-Id: I75692e7454ec9a863ef72c2bd35e3a8ff0f4c57d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-08-02adds vectored function for text and binaryJosé Bollo2-0/+31
Change-Id: I441624cf07fc783f54d1bc9613fee5f9b842e140 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-08-02adds extern to declarationsJosé Bollo1-16/+16
Change-Id: If91c5a49e1141d65b2927df708193c5cd38b3b56 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-07-27fix unexpected ending spacesJosé Bollo21-70/+70
Change-Id: Ie7ebccb02b42e91457df3bdbf2a6f037b248400e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-07-27Expose use of the event loopJosé Bollo10-32/+33
The use of the event loop where previously hidden in internal deep places of the websocket modules. This commits enforce the client of the library to explicitely tell what event loop must be used. This has 3 effects: - you know that the systemd event loop is used - you tell the event loop to use (no confusion) - you don't depend on afb-common.c Change-Id: Id13d8a96f981183c299cde414d9bb0cd77fe3daa Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-07-27orthographJosé Bollo5-20/+20
Change-Id: I354649f885daf89426f3b1612127045fdf1dedcc Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-07-12afb-client-demo/afb-ws: remove dependency on afb-common.*Stephane Desneux4-6/+22
afb-common.* files are not public and so not distributed in any development package. This makes difficult to create a client with sources out-of-tree. Change-Id: Ib2edd48f864f55821ab590442efdf6d1e2fdcd58 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2016-07-07Fix bug when logging during bindings initJosé Bollo1-0/+10
Change-Id: I1901070c94c3ca7e07b167d7c769d111b02cbd64 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-24improves doc for new usagesJosé Bollo17-104/+14
Change-Id: Idb1ae01484d1181904e91d57abafe7bdb8230179 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-24improves verbose messagesJosé Bollo1-3/+12
Change-Id: I176f5647512f50dce50d6db2de6204b5bc6e4d52 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-24adds a warning about afb/afb-plugin.h for GCCJosé Bollo1-2/+5
Change-Id: I72b62751fdbeaea3847312c62779fd0bd0ecb3ea Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-23vocabulary: moving from 'plugin' to 'binding'José Bollo60-814/+857
Change-Id: Ic9e118df2bede1fefbb591f8ae7887266b7324ca Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-23add .gitreviewStephane Desneux1-0/+5
Change-Id: Ifc281223617eb049e485bcd27233509b459eb3b5 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2016-06-23api-dbus: improves eventsJosé Bollo2-58/+668
Change-Id: I0d58bed66ebc9eaea63c0863351d03cf458e4198 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-23evt: handles broadcasting and trackingJosé Bollo5-39/+151
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-17evt: exposes name of eventsJosé Bollo2-0/+9
Change-Id: I1976848be0e8aeb170da37e1254208035e0e741a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-17evt: improves commentsJosé Bollo1-4/+88
Change-Id: I6c3e855030af9064335028e51d10c41db85a3f3c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-17evt: minor cleanupJosé Bollo1-5/+0
Change-Id: Ice4620cabc5a8643551439a149e80df255438020 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-16session: add cookiesJosé Bollo2-0/+69
Change-Id: I1f286597a8d5d97ab9c9cfcefa1b3a13eccd6d3e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-13minor reordering of codeJosé Bollo1-19/+23
Change-Id: I0768fa05de116f621dbb6e630dba3024e0886c6d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-13Service instanciationJosé Bollo9-1/+381
Adds the ability for a service to initiate calls to other services and to receive events in its own context. Change-Id: I5ff149a0231e551e9ce8a8de9658cb492a38cae1 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-10subcall: adds an error functionJosé Bollo2-1/+12
Change-Id: I9f766c4b880cc741392e5c33b58a2723b5a6f4ef Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-10session: allows individual timeoutJosé Bollo1-2/+11
Change-Id: Ibc3412c5a5dd50c23a7b035941d4aed278b62039 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-10session: tiny refactor of creationsJosé Bollo2-24/+50
Change-Id: Ie4bc15448203621d0f84c9be6f57c68cc88983b4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-10improves readabilityJosé Bollo1-56/+79
Change-Id: I27411163aff0ecedad4019094f4a5c46d5a2c342 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-10common code reuseJosé Bollo5-38/+26
Change-Id: I5f400a92165bb380ec5f703dd8ca567e90aebca2 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-10Improves documentationJosé Bollo13-61/+181
The script updt.sh is revisited to generate better the meta data. The format of events is documented. Change-Id: I3bb7347f3ac0f660196a25a4c0c0432848fe4168 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-09Make possible to call a method from a bindingJosé Bollo9-13/+313
The new request call 'afb_req_subcall' allows a binding to call the method of an other binding. Change-Id: I8538185be7a1663153a25db2bc940f9e2bdedb1a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-09documentation: switch to pandocJosé Bollo11-2452/+1641
Change-Id: I60fcea9d370f5b98efa1e08632f5f9682741b8c1 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-09update repository's paths to gerrit.automotivelinux.orgJosé Bollo4-14/+20
Change-Id: I323d82f1a67de8733e38f8c965241fffbcc88a7f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-09Events: refactoringJosé Bollo16-164/+500
This new version allows to subscribe a client for an event. The event should first be created for the API (the API's prefix is added) using 'afb_daemon_make_event'. After that, plugins can subscribe or unsubscribe their clients (identified through requests) to the events that it generates. See 'afb_req_subscribe' and 'afb_req_unsubscribe'. Events created by 'afb_daemon_make_event' can be widely broadcasted using 'afb_event_broadcast' or pushed only to suscribers using 'afb_event_push'. Events can be destroyed using 'afb_event_drop'. Change-Id: I7c0bed5e625c2052dcd81c6bfe960def1fa032f3 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-09fix double free errorJosé Bollo1-1/+1
Change-Id: I2b0ee05f67133c9b089da7ab6d36c0728d1cbe55 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-08Websocket: improves overall integrationJosé Bollo3-252/+98
Change-Id: I7af7b96d2f32b706eb378747c3719fa48f68c961 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-08wsj1: minor API refactoringJosé Bollo2-19/+40
Change-Id: I55e597a7c7cea295993326a6c4b362a136c05e4e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-08Improves message formatingJosé Bollo4-22/+48
Change-Id: Ifde5ff73cd6a73715fd4d6fd58101d9e97a3bef4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>