summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2016-05-30add option --session-maxJosé Bollo2-2/+16
Change-Id: I0f1a3ea3099b6b4e5485efa927c98c316ae6d195 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-30applies timeout setting for apisJosé Bollo4-1/+9
Change-Id: I6ff93946990400a6e900d6d6916e2b68af92fbcc Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-29Adds documentationJosé Bollo1-13/+40
Also remove a old cmakefile Change-Id: I2748514934790043a15bb48d1d06bd82967d4494 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-29redirect with the queryJosé Bollo3-20/+111
Change-Id: I36c6c6cbc62217ff0d79e004d9b40aa77e3fa0f4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-29don't enforce to refresh the tokenJosé Bollo1-1/+1
Change-Id: I4257210371c4b809e93c174e00677a82c4b196c7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-29improves versionning of libafbwscJosé Bollo1-0/+3
Change-Id: I8046c738a7c4fd367d2d7ae6e8fe6fc84054dc06 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-29remove event sender interfaceJosé Bollo1-13/+3
Change-Id: I45735ccb4204821caecf89e3fdce08ec0a2471d7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-29adds documentation for websocket C clientsJosé Bollo2-0/+151
Change-Id: I5507aeaf7669123eee16007af3d2fd3faeba8141 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-29compact formatting of jsonJosé Bollo4-11/+11
Change-Id: Ieb839f287593240aac4d784483ff4c6e6cb57d84 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-27Adds the library libafbwsc.soJosé Bollo3-2/+32
This library is intended to be used by C clients to connect to the binder and access to its fetures through the websocket. An example of integration is given by afb-client-demo.c It is known that it introduces an unwanted dependency to afb-common. This is a temporary issue. Change-Id: Ie0a395f116f6ee05679525a6399ef23ef245c944 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-27improves detection of formatting errorJosé Bollo1-1/+1
Change-Id: I426013cb841d6826c4904f68bf5fa1c653dd972c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-27indicates the call to initialisation functionJosé Bollo1-0/+1
Change-Id: Ia2e27fa2661b539e67e388a7e9f3fc1555281bd7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-24avoid to free the same pointerJosé Bollo1-1/+1
Change-Id: I0cf860c42046dd3819416688db24a2cd51c3f3aa Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-24improves commentsJosé Bollo2-0/+8
Change-Id: I6ddde79307b40c33ffd0208fe72ef84626c47cac Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-24Improves behaviour of afb_req_getJosé Bollo1-3/+5
The implementations of afb_req_get were not the same for HTTP and WebSocket when the argument wasn't set. Change-Id: I2f09376f597ee75a50b06423a19823040a9352e6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-24don't export PLUGIN_INSTALL_DIR anywhereJosé Bollo1-0/+2
Change-Id: I32689b3de32f5c85b461edcb63ef4d0117ff9ecb Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-24add log macros for pluginsJosé Bollo5-64/+77
Change-Id: I3de30aeb90a41ed8ee63ec1e19c6032440d65574 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-23fix regression of AFB_SESSION_NONEJosé Bollo1-1/+1
Change-Id: I1a03b99aa24bac7f801f94cfa0c8fd1cf28107e6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-23fix unicity of returned reqidJosé Bollo1-7/+3
Change-Id: Ib6c56844312112cc20e2c930f5803d620a9cbafc Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-23Setting and checking LOAJosé Bollo3-7/+26
Change-Id: I02c3795c6e212491605861228eb60b731be78537 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-23adds 'reqid' for GET/POST requestsJosé Bollo1-13/+27
Change-Id: I222dc17bc9f9795d0931c5a5b90ef53daacd026b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-23Fix don't close session on 'create again' errorJosé Bollo1-1/+0
Change-Id: I3ea1f1d76ab111217c8a229da7443becde4ec9e6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-23Fix DON'T ALWAYS CLOSE SESSIONJosé Bollo1-1/+1
Change-Id: I93439f9d111598d8917e7fb3eeb8434d29cf877a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-22Add verbs for closing and setting LOAJosé Bollo2-2/+6
These new verbs are now available to plugins. LOA is the level-of-authorisation. The usage of these new verbs must be protected by a mechanism that is still to be done. Change-Id: Ia591fb6bf9cd16956dc95658c5ba3a24ee4380be Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-22Fix AFB_SESSION_CREATE behaviourJosé Bollo5-9/+60
This commit allows to call methods having AFB_SESSION_CREATE at any time. This commit prepares the future LOA (level of authorization) implementation that wille soon replace the deprecated mechanism of AFB_SESSION_CREATE. Change-Id: Ia3e99186e012fcd55a6c81a7067ab5b4aca21e4d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-20set version to 0.5José Bollo1-1/+1
Change-Id: Ibc6bc30bc5ae19819fa5051a445d1cf6780b0185 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-20fix one-page-application redirectJosé Bollo3-5/+18
Change-Id: I80c4dbda86cd1bc2847dea5b1dea304f41c551e6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-20plugin: improves error detectionJosé Bollo2-19/+31
Change-Id: Ib6b1f958c347c04a0697c2e1d8116773a5977bd4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-19improves compatibility with yoctoJosé Bollo1-2/+2
Change-Id: I6458dd1e66b96c564d67304fc8f193772914499b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-19websocket: accept empty protocolJosé Bollo1-1/+5
Change-Id: If4d8609d5340faa53fea9e133a5415a576cbf5c5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-18adds a pkgconfig fileJosé Bollo1-2/+2
Change-Id: Ic0d143f282feef7335c7ea2bf589df90af4eef2f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-18improves the build systemJosé Bollo1-12/+47
Change-Id: Idad84e88cd8c21d111ce7ed44340f6d2b0fccb37 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-18favor new names at entry for token and uuidJosé Bollo3-23/+26
Change-Id: I62f9d4df7c83bf8d96ed9d89d4ab4b57146e6bb1 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-18propagate context creation to websocketJosé Bollo3-7/+15
Change-Id: I9ff53f5920d6134030f3e1d63c46f4a30a5e1968 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-18adds detection of wrong names for apisJosé Bollo4-6/+44
Change-Id: I5466879bc2d9a60992605bf2514f78d3121f8114 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-18fix bug in websocket clientJosé Bollo1-1/+4
Change-Id: I45c44f31c02ac81dc41127fe35024a57b8d4be33 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-18fix naming of plugin entriesJosé Bollo1-1/+1
Change-Id: I6aa39d2a9e83b0a406aab503a051a9e5f8e96a0b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-17event sender: better namingJosé Bollo1-7/+7
Change-Id: I82d918cd14b1e368ef509fa3a1b21c3e55a6b98d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-17improves plugin interfaceJosé Bollo1-17/+17
This commit improves the names and the organisation of the plugin interface for the developpers. Change-Id: Iaf191efbf8fd5d248884304b648258f0770ec5f5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-17provides developper filesJosé Bollo8-11/+12
Change-Id: I0e41a0db778c69b5f5ce71115d495b2bb8b4cffe Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-17update installation of executablesJosé Bollo1-1/+4
Change-Id: Ie6c967f1c9d4a3936f608371714c3ff685c7de0a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-17avoid a warningJosé Bollo1-1/+1
Change-Id: I7a571d13670f689d8a872b2583a5ac06374d0b1a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-13Merge branch 'master' of https://github.com/iotbzh/afb-daemonFulup Ar Foll40-150/+329
2016-05-13Fixed Sample POST/JSONFulup Ar Foll1-1/+3
2016-05-13cleaning copyrightsJosé Bollo39-42/+40
Change-Id: I4ff7349b1a87f92a7d9f378c715054061f06df57 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-13example of integration with websocket in CJosé Bollo9-110/+291
The file src/afb-client-demo.c provides an example of how to make a simple C client that connects to the daemon using the websocket protocol x-afb-json1. Change-Id: I31c926b2c42101a53e1ea36b4f67f095614db4a0 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-13new verbose and clean upJosé Bollo4-21/+68
Change-Id: I5217b216d706fd0286c8754e966bca3965d4ea62 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-12websocket client libraryJosé Bollo6-1/+1076
This introduce 2 files for creating client of websockets x-afb-json1: - afb-wsj1.c - afb-ws-client.c The file afb-wsj1.c implements the protocol x-afb-json1 on top of afb-ws.c. It could be used to rewrite afb-ws-json1. The file afb-ws-client.c implements a light version of the websocket handshaking to open a afb-wsj1 based on an uri. Change-Id: Ie53a3b4ff91a9efac32b667b57f8005266db6001 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-12fix a typo bugJosé Bollo1-1/+2
Change-Id: If622b8964d554469204f4df379680c2d258b4bff Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-12fix the linked list leakJosé Bollo1-0/+8
Change-Id: I0a26ed98b400df3dfde07d86c058120c8d140329 Signed-off-by: José Bollo <jose.bollo@iot.bzh>