summaryrefslogtreecommitdiffstats
path: root/plugins
AgeCommit message (Collapse)AuthorFilesLines
2016-04-05refactored verbosityJosé Bollo1-5/+5
Change-Id: Ibbf6645fbf1149687be9a7475773685cfb06b514 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-05plugin: updating utils-jbusJosé Bollo2-218/+750
Change-Id: I2493b77ccaad0b0df1ba3d9435c262814954edc8 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-04work in progress, session handlingJosé Bollo5-117/+184
Change-Id: I0393346280825e24a34e8db386160d857723b841 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-01work in progress (tbf)José Bollo3-94/+128
Change-Id: I1c4b48bc56a17b7351b57c3d4da53bd89465fff4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-01work in progress (tbf)José Bollo1-7/+11
Change-Id: I01f72892530bb4ef14a7216a112812026a367bfa Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-01work in progressJosé Bollo3-15/+22
Change-Id: I3df95def03bb26ca4d1a52f7cd94b0fb67375d4c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-03-31refactoring (in progress, tbf)José Bollo2-9/+9
Change-Id: Id9a98da85bb838b9401dad48a6652207ab4db191 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-03-31refactoring (in progress, tbf)José Bollo3-17/+7
Change-Id: I8f2684a38d0894d827510d9a171ee6d5c39fb55e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-03-30renaming of field apiJosé Bollo1-4/+4
Change-Id: I41ffc32e86e1c8c0f86fb1b06c2f8054867a9bc2 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-03-30refactoringJosé Bollo6-22/+21
Change-Id: I8dd46cf7fa57962e20e02f0fe34b3ffaa4c94f08 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-03-23several improvementsJosé Bollo1-0/+21
Change-Id: Id21bd735b7e1e24993ae93bc9f3634c0298d6f12 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-03-17afm-main-plugin: update utils-jbusJosé Bollo3-45/+81
Change-Id: I0c433bdd1136d4150e612468aab91dfcda383633 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-03-17removed private api and fix some few warningsJosé Bollo2-0/+4
Change-Id: I8d4427c94ca2b88a4f1add70b065d0b6d0865286 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-03-16Add warning detection and improveJosé Bollo4-8/+3
Change-Id: Id4fc86b86d55aac578d84b4d2357c1a2e600c58b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-02-23Fix horrendously wrong Volume check in Audio pluginManuel Bachmann1-1/+1
Volume bound check was always false. Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2016-02-17Audio plugin: choose between Pulse/ALSA at runtimeManuel Bachmann3-3/+15
If the AFB_AUDIO_OUTPUT environment variable is defined to "Pulse/Alsa", it will try to initialize the given backend (still falling back to Alsa for now). Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2016-02-16afm-main-plugin: fix bugJosé Bollo1-1/+1
Change-Id: Ia39f4d38b6ace8fba9731bf1f0c700487a0e8063 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-02-15afm-main-plugin: adds mode autoJosé Bollo1-1/+2
Change-Id: Ic707b52dd6029bd60242f03fcc04b6596f1cb017 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-02-14adds mode managementJosé Bollo1-3/+43
Change-Id: I73240e346a06924c314961871e789c69e279cb48 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-02-09afm-main-plugin: utils-jbus: fix bug that blockedJosé Bollo1-3/+11
Change-Id: Id31e2c93a1a128d768f9a55fdc739b0067b85121 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-02-09afm-main-plugin: Adds verbose promptsJosé Bollo1-29/+36
Change-Id: I85f1ca065cd659f974f699ab6b5540afd89bf5eb Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-02-09afm-main-plugin: improves error reportingJosé Bollo1-1/+4
Change-Id: I766f96f74434dfc0ec578e20769f91ce0796363e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-01-26afm-plugin: update utils-jbus versionJosé Bollo1-1/+3
Change-Id: Iafc6b6776bf10722a6217678c5a6847cc3fb0bfb Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-01-26Finalize Media Plugin upload API with full transfer logicManuel Bachmann1-23/+20
We now really transfer the file to the Media Server (Rygel e.g.) when the initial POST upload function has succeeded. Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2016-01-26Merge branch 'master' of github.com:iotbzh/afb-daemonFulup Ar Foll3-9/+19
2016-01-26fixe getPostPath for afm-mail pluginFulup Ar Foll2-24/+22
2016-01-26Fix getPostFile() upload function, return bare JSON in listManuel Bachmann3-9/+19
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>
2016-01-26Merge branch 'master' of github.com:iotbzh/afb-daemonFulup Ar Foll3-27/+246
2016-01-26Fixed Post File UploadFulup Ar Foll1-8/+4
2016-01-26afm-main: adds install/uninstallJosé Bollo3-27/+246
This commits introduces several evolutions. - the install and uninstall api are now available - some responses are embedded in objects - utils-jbus is updated to a more upstream version Change-Id: Ica37ae4b36e6ea0c7e824b730cc157040cdd77ce Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-01-26GetPostPath OngoingFulup Ar Foll1-1/+1
2016-01-25Media Plugin list API now returns a JSON objectManuel Bachmann1-5/+19
We now return a JSON object instead of an arbitrary string with the "list" API. Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2016-01-25Fix Media Plugin refresh, add seek APIManuel Bachmann3-15/+62
We no longer fail if init() is called multiple times (typical refresh case). We now support a "seek?value=<seconds>" API. Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2016-01-23afm-main-plugin: fix fatal error on initialisationJosé Bollo1-2/+2
The code was asking to disconnect from dbus even if not connected. The library dbus aborts the program in that case. Ouch... That is now taken into account and don't fail more. Change-Id: I088ef547f6a415e0adb795ac2e64233fd45dc945 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-01-22Implement Media Plugin upload API, update README.mdManuel Bachmann3-25/+212
Media Plugin now supports a "upload?value=<file>" API. Add Media Plugin requirements to README.md. Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2016-01-21Add choose, play, pause, stop to Media PluginManuel Bachmann4-20/+420
We can now play/pause/stop a track after having chosen its index number (default is 0). Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2016-01-20Fix Media Plugin content list APIManuel Bachmann4-8/+36
Listing content had various pointer-related issues. Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2016-01-11Add Media PluginManuel Bachmann6-0/+355
Add a Media Plugin, based off Rygel (UPnP), with only an initialization and a "list" function for now. Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2016-01-11Audio Plugin: add PulseAudio supportManuel Bachmann10-104/+693
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>
2016-01-06Fix Audio/Radio reinitialization issueManuel Bachmann2-2/+4
Audio and Radio plugins init() functions were re-creating a new client context each time, but it is actually unwanted as afb-radio <TokenRefresh> widgets uses this function to initialize AND refresh the context. Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2016-01-05Fix set_mute in corner casesManuel Bachmann1-3/+5
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2015-12-29Fix mute status for Porter/KoelschManuel Bachmann1-3/+10
Mute status on Porter/Koelsch is reversed, take this into account. Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2015-12-29Switch to unique token modelFulup Ar Foll2-4/+4
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>
2015-12-28Fix Audio plugin loading, mute on Porter/KoelschManuel Bachmann3-9/+27
Audio plugin was crashing due to new client context model misuse. Muting/demuting sound did fail on Porter/Koelsch boards, because their audio cards do not obey standards found on desktop systems. Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2015-12-28Fix plugin loading logic, radio plugin loadingManuel Bachmann1-1/+1
We should not free() a dlopened pointer. Internal plugin handle was renamed, adapt radio plugin. Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2015-12-24Fixed Client Session Context by PluginFulup Ar Foll4-2/+153
2015-12-23Add plugin handle into request, pass it to free callbackManuel Bachmann2-25/+14
We need the global handle in requests, and in the free function. Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2015-12-23Merge origin/masterFulup Ar Foll3-5/+16
2015-12-23Restore Previous functionalities with a unique TokenFulup Ar Foll1-1/+11
2015-12-22New Session Model [compile but not tested]Fulup Ar Foll3-34/+23