Switch to unique token model
authorFulup Ar Foll <fulup@iot.bzh>
Tue, 29 Dec 2015 01:15:07 +0000 (02:15 +0100)
committerManuel Bachmann <manuel.bachmann@iot.bzh>
Tue, 29 Dec 2015 01:15:26 +0000 (02:15 +0100)
commitda9b5d47f01f786f3170c80724a1a6d8f9b94ebb
treee5183502c07df8a8597a9f13a3d06c6190371147
parent07c775201fbd9477bd4a69cee3d48a95eb612bc6
Switch to unique token model

Token/Session Plugin is now able to issue a globally-valid
token (re-useable with all Plugins, so that an application
using multiple plugins is not forced to manage multiple
tokens anymore).

Adapt Audio & Radio Plugins to this model (init functions
do not create a token anymore, check for a prior existing
one).

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
Author: Fulup Ar Foll <fulup@iot.bzh>
Author: Manuel Bachmann <manuel.bachmann@iot.bzh>
plugins/audio/audio-api.c
plugins/radio/radio-api.c
src/rest-api.c