Age | Commit message (Collapse) | Author | Files | Lines |
|
Change-Id: I3388fa366c44c96d2ebf37ba57ed1b3acce82869
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
in case NULL is returned, log an error and do not register
the plugin.
Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh>
|
|
plugins handles pointer to AFB_plugin structures which
are located in each dynamically loaded plugin.
Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh>
|
|
|
|
|
|
|
|
getPostFile() does not fail anymore when creating a new
folder (return value was incorrect).
Media Plugin list API now directly returns JSON, with track
list array indexed as "list".
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
|
|
|
|
|
|
Change-Id: Iba9cb6ae3e18524a99cb82e521b4ca1aeec8d972
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Reading stdin drives to problems when afb-daemon
is launched with its input either closed or
connected to /dev/null.
Conversely, launching afb-daemon with the option
--daemon is not always possible because it really
daemonizes itself what forbids to control it
or its group directly.
Change-Id: I182741226762110809e50d68154f5d29d133303b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: Icea77134a93c643a39bd6fd1d19a7820f56fe230
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Because setting smack requires capabilities, it is better
to let the system configure correctly afb-daemon context:
smack, capabilities, groups, user.
Change-Id: I49edffd38216e735b36b7e2c6c4554fbd8e98f37
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
If PulseAudio development libraries are present, Audio
plugin will now support it. It may still fall back to
ALSA if a PulseAudio server is not found at runtime.
PulseAudio backend supports multiple clients using
one audio adapter.
(+ various fixes and style improvements)
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
|
|
|
|
|
|
|
|
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>
|
|
We should not free() a dlopened pointer.
Internal plugin handle was renamed, adapt radio plugin.
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
|
|
|
|
|
|
We need the global handle in requests, and in the free
function.
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
|
|
|
|
|
|
|
|
|
|
|
|
We now pre-reserve for 20 plugins (arbitrary for now,
we downsize if necessary).
Plugins count is now passed to the session in the
"pluginCount" variable.
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
|
|
|
|
afb-daemon now gracefully exits if no plugins are present.
HelloWorld's API has been renamed to "hello".
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
|
|
Change-Id: I371bfb6fdbaec91c14c0f3e2f2a45952252f8e27
|
|
|
|
|
|
Each API now compiles to a ".so" file, which gets searched
for in the "${libdir}/afb" directory at startup.
We can now load an arbitrary number of plugins (> 10).
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
|
|
|
|
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
|
|
|
|
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
|
|
|
|
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
|
|
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
|
|
Use CMake-2.8.8-specific feature to allow building the
daemon from various source directories.
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
|
|
|
|
|
|
|
|
|
|
|
|
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
|
|
|
|
|