src/app-framework-binder.git
7 years agoComments and fix of afb_req_unstore
José Bollo [Tue, 24 May 2016 21:41:10 +0000 (23:41 +0200)]
Comments and fix of afb_req_unstore

Change-Id: I64e3a1769a225041a998b1b9406a5ebe1a7f19d7
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoavoid to free the same pointer
José Bollo [Tue, 24 May 2016 15:20:45 +0000 (17:20 +0200)]
avoid to free the same pointer

Change-Id: I0cf860c42046dd3819416688db24a2cd51c3f3aa
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoimproves comments
José Bollo [Tue, 24 May 2016 15:19:46 +0000 (17:19 +0200)]
improves comments

Change-Id: I6ddde79307b40c33ffd0208fe72ef84626c47cac
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agotictactoe: adds asynchronous and signaling
José Bollo [Tue, 24 May 2016 14:20:39 +0000 (16:20 +0200)]
tictactoe: adds asynchronous and signaling

Change-Id: I6cf178f795957d109463041efe1ec211309b7e80
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoImproves behaviour of afb_req_get
José Bollo [Tue, 24 May 2016 14:15:08 +0000 (16:15 +0200)]
Improves behaviour of afb_req_get

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>
7 years agodon't export PLUGIN_INSTALL_DIR anywhere
José Bollo [Tue, 24 May 2016 14:01:47 +0000 (16:01 +0200)]
don't export PLUGIN_INSTALL_DIR anywhere

Change-Id: I32689b3de32f5c85b461edcb63ef4d0117ff9ecb
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoadds the tic-tac-toe example
José Bollo [Tue, 24 May 2016 10:28:39 +0000 (12:28 +0200)]
adds the tic-tac-toe example

Change-Id: I9c52b2e4f17ad3f02e0ef64fdd78864b3761e0b2
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoadd log macros for plugins
José Bollo [Tue, 24 May 2016 09:24:47 +0000 (11:24 +0200)]
add log macros for plugins

Change-Id: I3de30aeb90a41ed8ee63ec1e19c6032440d65574
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agofix regression of AFB_SESSION_NONE
José Bollo [Mon, 23 May 2016 15:09:26 +0000 (17:09 +0200)]
fix regression of AFB_SESSION_NONE

Change-Id: I1a03b99aa24bac7f801f94cfa0c8fd1cf28107e6
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoFix Radio plugin linking, improve Radio code
Manuel Bachmann [Mon, 23 May 2016 14:39:52 +0000 (16:39 +0200)]
Fix Radio plugin linking, improve Radio code

Radio plugin now links correctly again (-lm was missing).
Fix Radio plugin logic for new API, guard against some
undefined values.

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
7 years agofix unicity of returned reqid
José Bollo [Mon, 23 May 2016 14:26:13 +0000 (16:26 +0200)]
fix unicity of returned reqid

Change-Id: Ib6c56844312112cc20e2c930f5803d620a9cbafc
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoSetting and checking LOA
José Bollo [Mon, 23 May 2016 12:26:54 +0000 (14:26 +0200)]
Setting and checking LOA

Change-Id: I02c3795c6e212491605861228eb60b731be78537
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoImprove the Audio ALSA backend
Manuel Bachmann [Mon, 23 May 2016 12:23:06 +0000 (14:23 +0200)]
Improve the Audio ALSA backend

Guard the ALSA backend against some undefined values,
error codes, and remove a memory leak.

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
7 years agoadds 'reqid' for GET/POST requests
José Bollo [Mon, 23 May 2016 09:07:50 +0000 (11:07 +0200)]
adds 'reqid' for GET/POST requests

Change-Id: I222dc17bc9f9795d0931c5a5b90ef53daacd026b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoFix don't close session on 'create again' error
José Bollo [Mon, 23 May 2016 07:33:48 +0000 (09:33 +0200)]
Fix don't close session on 'create again' error

Change-Id: I3ea1f1d76ab111217c8a229da7443becde4ec9e6
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoFix DON'T ALWAYS CLOSE SESSION
José Bollo [Mon, 23 May 2016 07:27:21 +0000 (09:27 +0200)]
Fix DON'T ALWAYS CLOSE SESSION

Change-Id: I93439f9d111598d8917e7fb3eeb8434d29cf877a
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoAdd verbs for closing and setting LOA
José Bollo [Sun, 22 May 2016 05:54:10 +0000 (07:54 +0200)]
Add verbs for closing and setting LOA

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>
7 years agoFix AFB_SESSION_CREATE behaviour
José Bollo [Sat, 21 May 2016 22:29:22 +0000 (00:29 +0200)]
Fix AFB_SESSION_CREATE behaviour

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>
7 years agoset version to 0.5
José Bollo [Fri, 20 May 2016 19:41:25 +0000 (21:41 +0200)]
set version to 0.5

Change-Id: Ibc6bc30bc5ae19819fa5051a445d1cf6780b0185
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agofix one-page-application redirect
José Bollo [Fri, 20 May 2016 17:25:16 +0000 (19:25 +0200)]
fix one-page-application redirect

Change-Id: I80c4dbda86cd1bc2847dea5b1dea304f41c551e6
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoAdd QML WebSockets sample (token API)
Manuel Bachmann [Wed, 18 May 2016 19:15:31 +0000 (21:15 +0200)]
Add QML WebSockets sample (token API)

Creates, refreshes and destroys tokens via websockets.

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
7 years agoplugin: improves error detection
José Bollo [Fri, 20 May 2016 09:39:22 +0000 (11:39 +0200)]
plugin: improves error detection

Change-Id: Ib6b1f958c347c04a0697c2e1d8116773a5977bd4
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agominor: documenting and cleaning
José Bollo [Thu, 19 May 2016 16:06:28 +0000 (18:06 +0200)]
minor: documenting and cleaning

Change-Id: Ia5a84655ac7f881682409c3c6ed72e395c86a34d
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoafm-main-api: plugin moved to afm-main
José Bollo [Thu, 19 May 2016 14:27:21 +0000 (16:27 +0200)]
afm-main-api: plugin moved to afm-main

Change-Id: I627a698e17020e8437fa0045d7a35353f216d1e5
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoimproves compatibility with yocto
José Bollo [Thu, 19 May 2016 13:40:29 +0000 (15:40 +0200)]
improves compatibility with yocto

Change-Id: I6458dd1e66b96c564d67304fc8f193772914499b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agosetting version and removing afm-main-plugin
José Bollo [Thu, 19 May 2016 12:04:38 +0000 (14:04 +0200)]
setting version and removing afm-main-plugin

Change-Id: I282918e281d5c442b7259ffcd46b4ba0098fefe0
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agowebsocket: accept empty protocol
José Bollo [Thu, 19 May 2016 11:18:16 +0000 (13:18 +0200)]
websocket: accept empty protocol

Change-Id: If4d8609d5340faa53fea9e133a5415a576cbf5c5
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoadds a pkgconfig file
José Bollo [Wed, 18 May 2016 16:19:03 +0000 (18:19 +0200)]
adds a pkgconfig file

Change-Id: Ic0d143f282feef7335c7ea2bf589df90af4eef2f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoimproves the build system
José Bollo [Wed, 18 May 2016 15:29:26 +0000 (17:29 +0200)]
improves the build system

Change-Id: Idad84e88cd8c21d111ce7ed44340f6d2b0fccb37
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agofavor new names at entry for token and uuid
José Bollo [Wed, 18 May 2016 10:15:56 +0000 (12:15 +0200)]
favor new names at entry for token and uuid

Change-Id: I62f9d4df7c83bf8d96ed9d89d4ab4b57146e6bb1
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agopropagate context creation to websocket
José Bollo [Wed, 18 May 2016 09:35:12 +0000 (11:35 +0200)]
propagate context creation to websocket

Change-Id: I9ff53f5920d6134030f3e1d63c46f4a30a5e1968
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoadds detection of wrong names for apis
José Bollo [Wed, 18 May 2016 09:11:19 +0000 (11:11 +0200)]
adds detection of wrong names for apis

Change-Id: I5466879bc2d9a60992605bf2514f78d3121f8114
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agofix bug in websocket client
José Bollo [Wed, 18 May 2016 08:05:01 +0000 (10:05 +0200)]
fix bug in websocket client

Change-Id: I45c44f31c02ac81dc41127fe35024a57b8d4be33
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agofix naming of plugin entries
José Bollo [Wed, 18 May 2016 07:52:37 +0000 (09:52 +0200)]
fix naming of plugin entries

Change-Id: I6aa39d2a9e83b0a406aab503a051a9e5f8e96a0b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoevent sender: better naming
José Bollo [Tue, 17 May 2016 21:47:13 +0000 (23:47 +0200)]
event sender: better naming

Change-Id: I82d918cd14b1e368ef509fa3a1b21c3e55a6b98d
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoimproves plugin interface
José Bollo [Tue, 17 May 2016 21:36:23 +0000 (23:36 +0200)]
improves plugin interface

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>
8 years agoDocumentation
Fulup Ar Foll [Tue, 17 May 2016 16:36:10 +0000 (18:36 +0200)]
Documentation

8 years agoDocumentation
Fulup Ar Foll [Tue, 17 May 2016 15:58:48 +0000 (17:58 +0200)]
Documentation

8 years agoprovides developper files
José Bollo [Tue, 17 May 2016 13:12:11 +0000 (15:12 +0200)]
provides developper files

Change-Id: I0e41a0db778c69b5f5ce71115d495b2bb8b4cffe
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoupdate installation of executables
José Bollo [Tue, 17 May 2016 08:46:29 +0000 (10:46 +0200)]
update installation of executables

Change-Id: Ie6c967f1c9d4a3936f608371714c3ff685c7de0a
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoavoid a warning
José Bollo [Tue, 17 May 2016 08:32:46 +0000 (10:32 +0200)]
avoid a warning

Change-Id: I7a571d13670f689d8a872b2583a5ac06374d0b1a
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoupdate documentation for new paths
José Bollo [Tue, 17 May 2016 06:29:35 +0000 (08:29 +0200)]
update documentation for new paths

Change-Id: I734345475e6fbb7d924480ad9f0df79d6b1e8cdf
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoMerge branch 'master' of https://github.com/iotbzh/afb-daemon
Fulup Ar Foll [Fri, 13 May 2016 17:10:54 +0000 (19:10 +0200)]
Merge branch 'master' of https://github.com/iotbzh/afb-daemon

8 years agoFixed Sample POST/JSON
Fulup Ar Foll [Fri, 13 May 2016 17:10:32 +0000 (19:10 +0200)]
Fixed Sample POST/JSON

8 years agocleaning copyrights
José Bollo [Fri, 13 May 2016 14:40:17 +0000 (16:40 +0200)]
cleaning copyrights

Change-Id: I4ff7349b1a87f92a7d9f378c715054061f06df57
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoexample of integration with websocket in C
José Bollo [Fri, 13 May 2016 14:14:16 +0000 (16:14 +0200)]
example of integration with websocket in C

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>
8 years agonew verbose and clean up
José Bollo [Fri, 13 May 2016 10:43:13 +0000 (12:43 +0200)]
new verbose and clean up

Change-Id: I5217b216d706fd0286c8754e966bca3965d4ea62
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoimplements the example for file uploading
José Bollo [Fri, 13 May 2016 09:50:38 +0000 (11:50 +0200)]
implements the example for file uploading

Change-Id: I3171edbb702eecde401a218f8a56cc365aeaadbb
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agomedia: uploading - first step
José Bollo [Fri, 13 May 2016 08:33:29 +0000 (10:33 +0200)]
media: uploading - first step

Change-Id: I469dac8883f2c8e94fa2384612723ff29e6eae41
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agowebsocket client library
José Bollo [Thu, 12 May 2016 20:50:35 +0000 (22:50 +0200)]
websocket client library

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>
8 years agofix a typo bug
José Bollo [Thu, 12 May 2016 15:34:35 +0000 (17:34 +0200)]
fix a typo bug

Change-Id: If622b8964d554469204f4df379680c2d258b4bff
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agofix the linked list leak
José Bollo [Thu, 12 May 2016 12:42:35 +0000 (14:42 +0200)]
fix the linked list leak

Change-Id: I0a26ed98b400df3dfde07d86c058120c8d140329
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agobetter naming for protocol
José Bollo [Thu, 12 May 2016 11:26:07 +0000 (13:26 +0200)]
better naming for protocol

Change-Id: Idbcf5bd180788c8f50a7f2634c225290cf40c229
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoMerge branch 'master'
José Bollo [Thu, 12 May 2016 09:27:39 +0000 (11:27 +0200)]
Merge branch 'master'

er en quoi cette fusion est

Change-Id: I988c9cf042b120935b2c7ff2c6d9a5d969ac4b9e

8 years agofix https case
José Bollo [Thu, 12 May 2016 09:24:43 +0000 (11:24 +0200)]
fix https case

The HTTPS case is still to be encoded for the websockets.
This new test manages the possible case of HTTPS to
emit an error message instead of a SEGV.

Change-Id: I1fae5d6ad50dfd7eaefdd0f44734cee1a488ccfe
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoFix typo in media-api
Manuel Bachmann [Wed, 11 May 2016 11:31:28 +0000 (13:31 +0200)]
Fix typo in media-api

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
8 years agoUpdate Radio plugin, Media plugin
Manuel Bachmann [Wed, 11 May 2016 11:28:48 +0000 (13:28 +0200)]
Update Radio plugin, Media plugin

Radio and Media plugins are now ported to the new API
and build again.

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
8 years agofixup session memory leak
José Bollo [Wed, 11 May 2016 15:42:49 +0000 (17:42 +0200)]
fixup session memory leak

Change-Id: I49ed17a3818be6107c46ce17533761858d99f735
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoUpdate dependencies in README.md
Manuel Bachmann [Wed, 11 May 2016 08:32:18 +0000 (10:32 +0200)]
Update dependencies in README.md

Remove mentions of libdbus, add systemd and openssl.
Mention Ubuntu 16.04 and Fedora 23 as reference systems.
Add dependencies helper for both.

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
8 years agore-allow token null with old semantic
José Bollo [Wed, 11 May 2016 15:19:35 +0000 (17:19 +0200)]
re-allow token null with old semantic

Change-Id: I2db4ccb62b8a9aa2e7c93e54a43c47adc5cd3f93
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoimprove build dependencies
José Bollo [Wed, 11 May 2016 14:57:00 +0000 (16:57 +0200)]
improve build dependencies

Change-Id: I8acdaa832d238b170a65b7d968cc6f34e67dfcd4
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agodbus service propagate events
José Bollo [Wed, 11 May 2016 14:13:37 +0000 (16:13 +0200)]
dbus service propagate events

Change-Id: I34f2272e2f9e4f9166e55a7c8c17015fb8775d19
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoimproves signal handling & call monitoring
José Bollo [Wed, 11 May 2016 13:32:42 +0000 (15:32 +0200)]
improves signal handling & call monitoring

Change-Id: Ia37c70ffbb9122b2d53ec93baf203cd141613dc6
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoallows to filter events before to receive it
José Bollo [Wed, 11 May 2016 12:36:14 +0000 (14:36 +0200)]
allows to filter events before to receive it

Change-Id: Ia25d6a6269d7dd1af900b63d54cf615a69dfc4d7
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoallows global event listeners
José Bollo [Wed, 11 May 2016 12:26:16 +0000 (14:26 +0200)]
allows global event listeners

Change-Id: Ic8adc8b500542bc946b9236f391976da29214dd6
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agofix leak of messages
José Bollo [Wed, 11 May 2016 10:14:01 +0000 (12:14 +0200)]
fix leak of messages

Change-Id: Ieb4cfcf0b791cee89fadb742d6fbf00b9739bd10
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agofix dbus disconnection on error
José Bollo [Wed, 11 May 2016 09:56:42 +0000 (11:56 +0200)]
fix dbus disconnection on error

Change-Id: Ifddabb8c76094fca088ad5250b8dde30a48946c7
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agodaemon: make --token parameter mandatory
Manuel Bachmann [Wed, 11 May 2016 06:45:06 +0000 (08:45 +0200)]
daemon: make --token parameter mandatory

The daemon now quits with an explicit error message
instead of crashing if the "--token" parameter was
omitted.

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
8 years agoUpdate Audio plugin, re-enable ALSA/Pulse linking
Manuel Bachmann [Wed, 11 May 2016 06:41:50 +0000 (08:41 +0200)]
Update Audio plugin, re-enable ALSA/Pulse linking

Audio plugin is now ported to new API and builds again.

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
8 years agoexplicit use of json-c
José Bollo [Tue, 10 May 2016 21:21:43 +0000 (23:21 +0200)]
explicit use of json-c

Change-Id: Iebf7309255d1285a5833c5490d32f518a9232ede
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agotypo
José Bollo [Tue, 10 May 2016 21:01:00 +0000 (23:01 +0200)]
typo

Change-Id: Ida51275f75608e0b146a86d49bdb0e4b9c325fc0
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoimplmentation of dbus-service activated
José Bollo [Tue, 10 May 2016 15:20:39 +0000 (17:20 +0200)]
implmentation of dbus-service activated

Change-Id: I7fb1bb9d2e1f02fb746f45b803c0798ff0d7336c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agorefactored logging
José Bollo [Tue, 10 May 2016 14:23:40 +0000 (16:23 +0200)]
refactored logging

Change-Id: Iec97d679b7e3baa430e614f8e6336d6487de0f25
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoRefactoring requests and context handling
José Bollo [Tue, 10 May 2016 11:47:58 +0000 (13:47 +0200)]
Refactoring requests and context handling

Also adds a first (untested) implmentation of
the afb services over dbus.

Change-Id: Id1bdeccf75f3a70d3658bdaf0510d6e7b97f6c32
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoadd test files for Angular.js (not finished)
José Bollo [Mon, 9 May 2016 12:28:42 +0000 (14:28 +0200)]
add test files for Angular.js (not finished)

Change-Id: I179687911193fee2bd732db5d42f2748dcedd9f8
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoensure that the copy is done by libmicrohttp
José Bollo [Mon, 9 May 2016 12:17:01 +0000 (14:17 +0200)]
ensure that the copy is done by libmicrohttp

Change-Id: I68d10265e34953e3ad21197f616c838b4b8c2bad
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agobetter cleanup on error
José Bollo [Mon, 9 May 2016 12:15:23 +0000 (14:15 +0200)]
better cleanup on error

Change-Id: Icb78637f4e7ed905ae8df4bf2e1ba1e0d176dfa2
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agobetter naming of event listeners
José Bollo [Mon, 9 May 2016 12:05:27 +0000 (14:05 +0200)]
better naming of event listeners

Change-Id: I855d2aa1ebc0cc9fb220a338f4ce79410a58c040
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agotest systemd version
José Bollo [Mon, 9 May 2016 08:56:08 +0000 (10:56 +0200)]
test systemd version

Change-Id: Ibee4c7189a72b38117e8b6fc01844a45a951fdeb
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoimproves naming
José Bollo [Mon, 9 May 2016 07:52:26 +0000 (09:52 +0200)]
improves naming

Change-Id: If334a26fada7bd234a6c71bee32b7b700f85c87c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoimproves api
José Bollo [Wed, 4 May 2016 16:40:42 +0000 (18:40 +0200)]
improves api

Change-Id: Id76ab70174e758f26caf9f883595f6cc003147d3
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agotry to avoid unnecessary copy
José Bollo [Wed, 4 May 2016 16:35:55 +0000 (18:35 +0200)]
try to avoid unnecessary copy

Change-Id: I98cd69133ba3babb2719fad8c7e31c4dcaf1ae97
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoswitch logs to systemd journal
José Bollo [Wed, 4 May 2016 14:18:57 +0000 (16:18 +0200)]
switch logs to systemd journal

Change-Id: I0d9e4ad5a1a18aac1b81e00dc4632823653beaed
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoRemoving legacy dbus-1 library
José Bollo [Tue, 3 May 2016 15:05:36 +0000 (17:05 +0200)]
Removing legacy dbus-1 library

Change-Id: I1c1d17cd702e12ed961ed90d1489bc12b074bd55
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoSwitch to libsystemd events
José Bollo [Tue, 3 May 2016 08:03:58 +0000 (10:03 +0200)]
Switch to libsystemd events

This patch removes part of code that are
not specific in favour of a more shared
library.

Change-Id: I3506e7514181cfbed753559bb65460f95b2141c9
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agofirst add of asynchonous handling
José Bollo [Wed, 27 Apr 2016 19:25:54 +0000 (21:25 +0200)]
first add of asynchonous handling

Change-Id: Id9159d33937dc23342d32892f77998fb8cef0000
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoadds store/unstore for afb_req
José Bollo [Wed, 27 Apr 2016 10:02:25 +0000 (12:02 +0200)]
adds store/unstore for afb_req

Change-Id: If93e243378efbb6329bb9cc60d869261ddc33c48
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoImproves websock API
José Bollo [Tue, 26 Apr 2016 20:00:58 +0000 (22:00 +0200)]
Improves websock API

Change-Id: I4c812382751c244e016041af53380e79ac63edd4
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoimproves test cases
José Bollo [Tue, 26 Apr 2016 19:59:42 +0000 (21:59 +0200)]
improves test cases

Change-Id: Ib446bddd5ff2fba39dda02cad7ede4f63f576893
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agofix warning signed/unsigned
José Bollo [Tue, 26 Apr 2016 19:57:56 +0000 (21:57 +0200)]
fix warning signed/unsigned

Change-Id: Iefff8428c64b1432b95affe09273ce66bc7046ff
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agopredeclare the structure
José Bollo [Tue, 26 Apr 2016 19:57:09 +0000 (21:57 +0200)]
predeclare the structure

Change-Id: I11173ae47dec95e0573929ebe941a01f8da0b038
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agosimplify handling of MHD_run
José Bollo [Tue, 26 Apr 2016 19:56:27 +0000 (21:56 +0200)]
simplify handling of MHD_run

Change-Id: I96c89ef38d44cd25e7e7453a81c75cd790a8d54b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoavoid reentering MHD_run
José Bollo [Mon, 25 Apr 2016 14:48:17 +0000 (16:48 +0200)]
avoid reentering MHD_run

Change-Id: I54547f52c44b05573190cd226f71ee9d40181300
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agobetter handling of lengths
José Bollo [Mon, 25 Apr 2016 14:47:09 +0000 (16:47 +0200)]
better handling of lengths

Change-Id: Ia5f440bd84d18155dbe26f311c3a070238c17444
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoavoid double free
José Bollo [Mon, 25 Apr 2016 14:46:46 +0000 (16:46 +0200)]
avoid double free

Change-Id: Ibe92117ab104aca7ae923378198b36b0a273ec47
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoAdd comments
jobol [Fri, 22 Apr 2016 15:48:48 +0000 (17:48 +0200)]
Add comments

Change-Id: If9ec624786a64cb716e37acbad0c8d30c3bb8265

8 years agomanages reference counting for events
José Bollo [Thu, 21 Apr 2016 15:49:30 +0000 (17:49 +0200)]
manages reference counting for events

Events are sent to an unknown count of receivers.
For this reason, the function push should not
consume the json object given.

Change-Id: Ie6c60074bd3822e7107d670f905cc86f56f826bf
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agowebsocket implementing cleanup
José Bollo [Thu, 21 Apr 2016 15:48:00 +0000 (17:48 +0200)]
websocket implementing cleanup

Change-Id: I85ee8eb60ef5d37ce1a82044ae317d2a17d3bec8
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agowebsocket refactoring
José Bollo [Thu, 21 Apr 2016 15:45:44 +0000 (17:45 +0200)]
websocket refactoring

Change-Id: Ia39ec6c01ce1fc6b3921b0433ab872d47ebdbbc4
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agohandles closing in callbacks
José Bollo [Thu, 21 Apr 2016 13:14:36 +0000 (15:14 +0200)]
handles closing in callbacks

Change-Id: I7c12c31957794910cd92fdfe74257e6faae8770a
Signed-off-by: José Bollo <jose.bollo@iot.bzh>