src/app-framework-binder.git
7 years agominor reordering of code 51/5951/1
José Bollo [Mon, 13 Jun 2016 14:46:44 +0000 (16:46 +0200)]
minor reordering of code

Change-Id: I0768fa05de116f621dbb6e630dba3024e0886c6d
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoService instanciation 49/5949/1
José Bollo [Mon, 13 Jun 2016 14:36:51 +0000 (16:36 +0200)]
Service instanciation

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>
7 years agosubcall: adds an error function 47/5947/1
José Bollo [Fri, 10 Jun 2016 17:38:32 +0000 (19:38 +0200)]
subcall: adds an error function

Change-Id: I9f766c4b880cc741392e5c33b58a2723b5a6f4ef
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agosession: allows individual timeout 45/5945/1
José Bollo [Fri, 10 Jun 2016 17:10:29 +0000 (19:10 +0200)]
session: allows individual timeout

Change-Id: Ibc3412c5a5dd50c23a7b035941d4aed278b62039
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agosession: tiny refactor of creations 43/5943/1
José Bollo [Fri, 10 Jun 2016 15:35:54 +0000 (17:35 +0200)]
session: tiny refactor of creations

Change-Id: Ie4bc15448203621d0f84c9be6f57c68cc88983b4
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoimproves readability 41/5941/1
José Bollo [Fri, 10 Jun 2016 14:56:10 +0000 (16:56 +0200)]
improves readability

Change-Id: I27411163aff0ecedad4019094f4a5c46d5a2c342
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agocommon code reuse 39/5939/1
José Bollo [Fri, 10 Jun 2016 12:29:14 +0000 (14:29 +0200)]
common code reuse

Change-Id: I5f400a92165bb380ec5f703dd8ca567e90aebca2
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoImproves documentation 37/5937/1
José Bollo [Fri, 10 Jun 2016 11:49:34 +0000 (13:49 +0200)]
Improves documentation

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>
7 years agoMake possible to call a method from a binding 35/5935/1
José Bollo [Thu, 9 Jun 2016 14:59:19 +0000 (16:59 +0200)]
Make possible to call a method from a binding

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>
7 years agodocumentation: switch to pandoc 33/5933/1
José Bollo [Thu, 9 Jun 2016 12:22:22 +0000 (14:22 +0200)]
documentation: switch to pandoc

Change-Id: I60fcea9d370f5b98efa1e08632f5f9682741b8c1
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoupdate repository's paths to gerrit.automotivelinux.org 31/5931/1
José Bollo [Thu, 9 Jun 2016 08:58:06 +0000 (10:58 +0200)]
update repository's paths to gerrit.automotivelinux.org

Change-Id: I323d82f1a67de8733e38f8c965241fffbcc88a7f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoEvents: refactoring 29/5929/1
José Bollo [Thu, 9 Jun 2016 05:54:31 +0000 (07:54 +0200)]
Events: refactoring

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>
7 years agofix double free error 27/5927/1
José Bollo [Thu, 9 Jun 2016 05:52:50 +0000 (07:52 +0200)]
fix double free error

Change-Id: I2b0ee05f67133c9b089da7ab6d36c0728d1cbe55
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoWebsocket: improves overall integration 25/5925/1
José Bollo [Wed, 8 Jun 2016 05:51:36 +0000 (07:51 +0200)]
Websocket: improves overall integration

Change-Id: I7af7b96d2f32b706eb378747c3719fa48f68c961
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agowsj1: minor API refactoring 23/5923/1
José Bollo [Wed, 8 Jun 2016 08:41:29 +0000 (10:41 +0200)]
wsj1: minor API refactoring

Change-Id: I55e597a7c7cea295993326a6c4b362a136c05e4e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoImproves message formating 21/5921/1
José Bollo [Wed, 8 Jun 2016 08:13:17 +0000 (10:13 +0200)]
Improves message formating

Change-Id: Ifde5ff73cd6a73715fd4d6fd58101d9e97a3bef4
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoDBus binding: first draft 19/5919/1
jobol [Mon, 6 Jun 2016 09:32:19 +0000 (11:32 +0200)]
DBus binding: first draft

Implements the verb 'rawcall'

Change-Id: Id83b065f778f2fd61ecf6e4e13bff3cc17d8ef18
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoAvoids javascript errors 17/5917/1
José Bollo [Wed, 8 Jun 2016 05:52:44 +0000 (07:52 +0200)]
Avoids javascript errors

But doesn't make AfbAngular functionnal.

Change-Id: I643c81792fa757710327a8f66a79a1c8173ebe75
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoafb-hreq.c: fix etag size (fixes stack smashing detected by stack protector)
Stephane Desneux [Thu, 2 Jun 2016 17:12:07 +0000 (19:12 +0200)]
afb-hreq.c: fix etag size (fixes stack smashing detected by stack protector)

Change-Id: I843dba1d07396ddcfb35b010e7e3a9a9ac73c143
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
7 years agoSet version 1.0
José Bollo [Tue, 31 May 2016 12:34:29 +0000 (14:34 +0200)]
Set version 1.0

Change-Id: I4e10154ae465b8175201f57c3ba0fba8be6d69cc
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoupdate html pages
José Bollo [Tue, 31 May 2016 08:03:13 +0000 (10:03 +0200)]
update html pages

Change-Id: I69014a4fe61ddc290be7abcc09065db60f1a4c5e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoafb-application-writing.md review
Fulup Ar Foll [Mon, 30 May 2016 16:56:37 +0000 (18:56 +0200)]
afb-application-writing.md review

7 years agoImproves documentation
José Bollo [Mon, 30 May 2016 15:53:10 +0000 (17:53 +0200)]
Improves documentation

Change-Id: I7a93b69d56912f396aa7819149038746aa59e620
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoupdate documentation
José Bollo [Mon, 30 May 2016 13:00:57 +0000 (15:00 +0200)]
update documentation

Change-Id: I64a28ead6a82658dd9a95c7d54742dbe018ef574
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoFix PulseAudio backend crash with multiple cards
Manuel Bachmann [Mon, 30 May 2016 13:49:39 +0000 (15:49 +0200)]
Fix PulseAudio backend crash with multiple cards

With multiple sound cards, dynamic allocation may have
been skipped.o

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
7 years agoAdd tests documentation, fix typo
Manuel Bachmann [Mon, 30 May 2016 12:56:38 +0000 (14:56 +0200)]
Add tests documentation, fix typo

Document the tests in "test/".
Fix typo in plugins documentation.

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
7 years agoremove the document afb-daemon.{md,html}
José Bollo [Mon, 30 May 2016 12:50:15 +0000 (14:50 +0200)]
remove the document afb-daemon.{md,html}

Change-Id: I6877be36cbc4e4125d7cdf658807aee98de4c82a
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoadd option --session-max
José Bollo [Mon, 30 May 2016 12:48:26 +0000 (14:48 +0200)]
add option --session-max

Change-Id: I0f1a3ea3099b6b4e5485efa927c98c316ae6d195
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoImproves the documentation
José Bollo [Mon, 30 May 2016 11:22:34 +0000 (13:22 +0200)]
Improves the documentation

Change-Id: Iac5ee5c2ca014ced5fe836601e9afc362a9d4fda
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoapplies timeout setting for apis
José Bollo [Mon, 30 May 2016 10:51:17 +0000 (12:51 +0200)]
applies timeout setting for apis

Change-Id: I6ff93946990400a6e900d6d6916e2b68af92fbcc
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoUpdate plugins documentation (give verbs)o
Manuel Bachmann [Mon, 30 May 2016 11:20:04 +0000 (13:20 +0200)]
Update plugins documentation (give verbs)o

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
7 years agoUpdate plugins documentation (helloworld, auth, tictactoe)
Manuel Bachmann [Mon, 30 May 2016 10:43:30 +0000 (12:43 +0200)]
Update plugins documentation (helloworld, auth, tictactoe)
Add doc. for Hello World, Authentication, Tic Tac Toe.

Fix a few typos and formatting issues.

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
7 years agoAdd basic documentation for plugins
Manuel Bachmann [Mon, 30 May 2016 10:00:09 +0000 (12:00 +0200)]
Add basic documentation for plugins

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
7 years agoUpdate QML token-auth demo
Manuel Bachmann [Mon, 30 May 2016 08:28:46 +0000 (10:28 +0200)]
Update QML token-auth demo

Finalize migration of the QML "token" demo to the new
"auth" plugin logic.

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
7 years agoFix PulseAudio refreshing, volume APIs
Manuel Bachmann [Mon, 30 May 2016 07:16:45 +0000 (09:16 +0200)]
Fix PulseAudio refreshing, volume APIs

Refreshing PulseAudio info may have failed due to
mainloops vanishing or conflicting.
Volume values are now set/get as % values, as with the
ALSA backend.

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
7 years agoAdds documentation
José Bollo [Sun, 29 May 2016 20:15:41 +0000 (22:15 +0200)]
Adds documentation

Also remove a old cmakefile

Change-Id: I2748514934790043a15bb48d1d06bd82967d4494
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoredirect with the query
José Bollo [Sun, 29 May 2016 21:44:51 +0000 (23:44 +0200)]
redirect with the query

Change-Id: I36c6c6cbc62217ff0d79e004d9b40aa77e3fa0f4
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoMerge branch 'master' of https://github.com/iotbzh/afb-daemon
Fulup Ar Foll [Sun, 29 May 2016 21:41:40 +0000 (23:41 +0200)]
Merge branch 'master' of https://github.com/iotbzh/afb-daemon

7 years agoPremière Relecture
Fulup Ar Foll [Sun, 29 May 2016 21:40:34 +0000 (23:40 +0200)]
Première Relecture

7 years agodon't enforce to refresh the token
José Bollo [Sun, 29 May 2016 10:35:26 +0000 (12:35 +0200)]
don't enforce to refresh the token

Change-Id: I4257210371c4b809e93c174e00677a82c4b196c7
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoimproves versionning of libafbwsc
José Bollo [Sun, 29 May 2016 08:56:02 +0000 (10:56 +0200)]
improves versionning of libafbwsc

Change-Id: I8046c738a7c4fd367d2d7ae6e8fe6fc84054dc06
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoimproves documentation formating
José Bollo [Sun, 29 May 2016 08:27:26 +0000 (10:27 +0200)]
improves documentation formating

Change-Id: I70902f6fa8c0381dd4a5eefb050a971ca2c80b12
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agorename afb-wsc to libafbwsc
José Bollo [Sun, 29 May 2016 07:59:36 +0000 (09:59 +0200)]
rename afb-wsc to libafbwsc

Change-Id: I8609fcaff3f271f88cb4582675a404c88a9a41a5
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoremove event sender interface
José Bollo [Sun, 29 May 2016 07:58:57 +0000 (09:58 +0200)]
remove event sender interface

Change-Id: I45735ccb4204821caecf89e3fdce08ec0a2471d7
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoadds documentation for websocket C clients
José Bollo [Sat, 28 May 2016 22:12:00 +0000 (00:12 +0200)]
adds documentation for websocket C clients

Change-Id: I5507aeaf7669123eee16007af3d2fd3faeba8141
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agocompact formatting of json
José Bollo [Sat, 28 May 2016 21:20:21 +0000 (23:20 +0200)]
compact formatting of json

Change-Id: Ieb839f287593240aac4d784483ff4c6e6cb57d84
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoClean up and documentation
Fulup Ar Foll [Sat, 28 May 2016 20:59:17 +0000 (22:59 +0200)]
Clean up and documentation

7 years agoimprove naming of sample plugins
José Bollo [Sat, 28 May 2016 16:52:26 +0000 (18:52 +0200)]
improve naming of sample plugins

Change-Id: I81cbb40c937bc087079d1605d163aea968bb9250
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
7 years agoMerge branch 'master' of https://github.com/iotbzh/afb-daemon
Fulup Ar Foll [Sat, 28 May 2016 09:55:08 +0000 (11:55 +0200)]
Merge branch 'master' of https://github.com/iotbzh/afb-daemon

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>