src/app-framework-binder.git
7 years agoChanged Login for Connect
Fulup Ar Foll [Sat, 28 May 2016 09:54:24 +0000 (11:54 +0200)]
Changed Login for Connect

7 years agoimproves documentation
José Bollo [Fri, 27 May 2016 21:43:24 +0000 (23:43 +0200)]
improves documentation

Change-Id: Ia86f95ee852ca0cc419b2fe6e796621e358c8b29
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoremoves restriction on the count of waiters
José Bollo [Fri, 27 May 2016 21:07:19 +0000 (23:07 +0200)]
removes restriction on the count of waiters

in fact, using more than on web socket, the same client (same session)
can lock itself using wait and unlock itself using move...

Change-Id: I4ebd8fa93d3373589e9bb7fac7c250e29f94c460
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoimproves documentation
José Bollo [Fri, 27 May 2016 20:18:26 +0000 (22:18 +0200)]
improves documentation

Change-Id: Idbd1b735571c2e35daed23d43f8d5d3990881533
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoimproves documentation
José Bollo [Fri, 27 May 2016 15:31:30 +0000 (17:31 +0200)]
improves documentation

Change-Id: I5abae06cd5b5127fca97ba12aa8f18d037a95d79
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoAdds the library libafbwsc.so
José Bollo [Fri, 27 May 2016 15:15:21 +0000 (17:15 +0200)]
Adds the library libafbwsc.so

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>
7 years agoterminology: Level Of Assurance
José Bollo [Fri, 27 May 2016 14:41:59 +0000 (16:41 +0200)]
terminology: Level Of Assurance

Change-Id: I3c92aab34ba9414faf19d9a96d8f1de786f1e7b6
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agofix formatting error
José Bollo [Fri, 27 May 2016 13:25:46 +0000 (15:25 +0200)]
fix formatting error

Change-Id: I1e5842a43a50c357d78f3318b4c0eed8ad1676e2
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoallows to remove file/line indication
José Bollo [Fri, 27 May 2016 13:23:58 +0000 (15:23 +0200)]
allows to remove file/line indication

Change-Id: I800dfdc68dc4538b2c46367a8594d7ac6a36824d
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoremove unuseful flags
José Bollo [Fri, 27 May 2016 12:58:39 +0000 (14:58 +0200)]
remove unuseful flags

Change-Id: I1ae220cc7621647b0cbe1fa6ea4a21619b8fc52c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoimproves detection of formatting error
José Bollo [Fri, 27 May 2016 12:58:15 +0000 (14:58 +0200)]
improves detection of formatting error

Change-Id: I426013cb841d6826c4904f68bf5fa1c653dd972c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoimproves naming
José Bollo [Fri, 27 May 2016 12:57:29 +0000 (14:57 +0200)]
improves naming

Change-Id: If26d8b9af05c84bd24d0ac3ceb9a628a0039c2a6
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoindicates the call to initialisation function
José Bollo [Fri, 27 May 2016 09:04:07 +0000 (11:04 +0200)]
indicates the call to initialisation function

Change-Id: Ia2e27fa2661b539e67e388a7e9f3fc1555281bd7
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoImprove Audio plugin PulseAudio backend
Manuel Bachmann [Fri, 27 May 2016 12:16:54 +0000 (14:16 +0200)]
Improve Audio plugin PulseAudio backend

>100 return values are strangely returned by PulseAudio
when doing an initial connection from afb-daemon. Just
ignore them, because it breaks the logic.
Allow 2 seconds of initial asynchronous connection (it
should return earlier anyways).

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
7 years agoImprove Audio plugin PulseAudio backend
Manuel Bachmann [Fri, 27 May 2016 09:04:56 +0000 (11:04 +0200)]
Improve Audio plugin PulseAudio backend

Remove obvious errors from the PulseAudio backend.
It does not work yet (permissions issues ?), and some parts
of the code are still hardly self-explaining.

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
7 years agorestore names
jobol [Thu, 26 May 2016 16:13:19 +0000 (18:13 +0200)]
restore names

Signed-off-by: jobol <jobol@nonadev.net>
7 years agorename parameter to argument
jobol [Thu, 26 May 2016 16:12:54 +0000 (18:12 +0200)]
rename parameter to argument

Signed-off-by: jobol <jobol@nonadev.net>
7 years agoupdate documentation
jobol [Thu, 26 May 2016 16:12:12 +0000 (18:12 +0200)]
update documentation

Signed-off-by: jobol <jobol@nonadev.net>
7 years agocss: minor update
Yannick Gicquel [Thu, 26 May 2016 12:13:11 +0000 (14:13 +0200)]
css: minor update

pre block: margin alignment
h1,h2,h3: add outline

Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh>
7 years agoDocumentation
Fulup Ar Foll [Wed, 25 May 2016 20:26:52 +0000 (22:26 +0200)]
Documentation

7 years agoSet LOA Sample
Fulup Ar Foll [Wed, 25 May 2016 20:22:54 +0000 (22:22 +0200)]
Set LOA Sample

7 years agoSet LOA Sample
Fulup Ar Foll [Wed, 25 May 2016 20:19:25 +0000 (22:19 +0200)]
Set LOA Sample

7 years agorefactor requirements
jobol [Wed, 25 May 2016 14:55:47 +0000 (16:55 +0200)]
refactor requirements

Signed-off-by: jobol <jobol@nonadev.net>
7 years agomore doc
jobol [Wed, 25 May 2016 14:55:17 +0000 (16:55 +0200)]
more doc

Signed-off-by: jobol <jobol@nonadev.net>
7 years agobegins the documentation
José Bollo [Tue, 24 May 2016 21:49:18 +0000 (23:49 +0200)]
begins the documentation

Change-Id: I560725dfa5dd7ab1ae5e91b45f5ba613c3a2c1de
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agotic-tac-toe: improvement
José Bollo [Tue, 24 May 2016 21:42:44 +0000 (23:42 +0200)]
tic-tac-toe: improvement

Change-Id: If59b14bce431c336bd9d800098c20ade3a915f4c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
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>