src/app-framework-binder.git
8 years agorefactoring (in progress, tbf)
José Bollo [Thu, 31 Mar 2016 15:56:32 +0000 (17:56 +0200)]
refactoring (in progress, tbf)

Change-Id: I8f2684a38d0894d827510d9a171ee6d5c39fb55e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agofix bug
José Bollo [Thu, 31 Mar 2016 08:26:51 +0000 (10:26 +0200)]
fix bug

Change-Id: I5d905a3f74a18ae2bad8b907b1f4e61c2104117f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agorefactoring (in progress, tbf)
José Bollo [Wed, 30 Mar 2016 17:22:34 +0000 (19:22 +0200)]
refactoring (in progress, tbf)

Change-Id: I7461983aa3177f8ae54ca72761d916e646888fca
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agostatic setup of sessions
José Bollo [Wed, 30 Mar 2016 12:47:40 +0000 (14:47 +0200)]
static setup of sessions

Change-Id: I51b7c20ffe2a1fecf1471522df0aa66d81dcaec1
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agorenaming of field api
José Bollo [Wed, 30 Mar 2016 12:36:11 +0000 (14:36 +0200)]
renaming of field api

Change-Id: I41ffc32e86e1c8c0f86fb1b06c2f8054867a9bc2
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agorefactor context usage
José Bollo [Wed, 30 Mar 2016 12:35:34 +0000 (14:35 +0200)]
refactor context usage

Change-Id: I5ba57724eac605ef6e5a134ab7d9db56d2df4a07
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoremoves uneeded data
José Bollo [Wed, 30 Mar 2016 12:06:20 +0000 (14:06 +0200)]
removes uneeded data

Change-Id: Id95e2dcfc0a6cbf34799559be683fa9244aa82db
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agonaming: globally unic identifier
José Bollo [Wed, 30 Mar 2016 12:05:41 +0000 (14:05 +0200)]
naming: globally unic identifier

Change-Id: I0da5ca620a08dd5a4508c59861e009e953b580d4
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agorefactoring
José Bollo [Wed, 30 Mar 2016 11:55:50 +0000 (13:55 +0200)]
refactoring

Change-Id: I8dd46cf7fa57962e20e02f0fe34b3ffaa4c94f08
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoremoves session files
José Bollo [Tue, 29 Mar 2016 15:11:07 +0000 (17:11 +0200)]
removes session files

Change-Id: I4d074a7d6b7047b67fe11b394371780d6d2493e0
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agosplitting rest-api in two parts
José Bollo [Tue, 29 Mar 2016 14:41:36 +0000 (16:41 +0200)]
splitting rest-api in two parts

Change-Id: I6c1982660d60c5496b5ea0cd50fb8274e2eaf703
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agowebsocket: initial (not integrated)
José Bollo [Fri, 25 Mar 2016 21:33:06 +0000 (22:33 +0100)]
websocket: initial (not integrated)

Change-Id: I55943a81101a189d621f37f0a0b2fe21c9fbc215
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agohttp-svc: fix bug
José Bollo [Fri, 25 Mar 2016 15:50:18 +0000 (16:50 +0100)]
http-svc: fix bug

Change-Id: I02252b8a07f1d711703c2103067c468ad597fb73
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agosession: fix bug
José Bollo [Fri, 25 Mar 2016 09:54:15 +0000 (10:54 +0100)]
session: fix bug

Change-Id: I2b66d5156e1ca0d461a99e5b556b7da7c84ceea9
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agosession: formating
José Bollo [Wed, 23 Mar 2016 18:03:51 +0000 (19:03 +0100)]
session: formating

Change-Id: I8f2a5848eb90e5359245fc712d8c86eeb731a139
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoafb-req-itf: small step for abstracting
José Bollo [Wed, 23 Mar 2016 18:02:39 +0000 (19:02 +0100)]
afb-req-itf: small step for abstracting

Change-Id: Iaad2c4077b1b28c30c3f1b0369fb82ca0a5909ab
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoAFB_error: improves mangement
José Bollo [Wed, 23 Mar 2016 16:11:04 +0000 (17:11 +0100)]
AFB_error: improves mangement

Change-Id: I88969338623aad0cb628f97f9e9962315ae9380c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agocleanup: remove unused definitions
José Bollo [Wed, 23 Mar 2016 16:00:27 +0000 (17:00 +0100)]
cleanup: remove unused definitions

Change-Id: I6ca39422482cbb7174819a1e3cae83c56c6fb4fe
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agosession: moves initialisation to main
José Bollo [Wed, 23 Mar 2016 15:45:19 +0000 (16:45 +0100)]
session: moves initialisation to main

Change-Id: I038d5624dc2f32e2c2d54b7e6ea388cb61122ccd
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agosession: removes file handling
José Bollo [Wed, 23 Mar 2016 15:37:20 +0000 (16:37 +0100)]
session: removes file handling

Change-Id: Ib26a93bae5ef824fc570e634cf124b364b03fced
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agomain: simplification
José Bollo [Wed, 23 Mar 2016 15:22:02 +0000 (16:22 +0100)]
main: simplification

Change-Id: I13bec46b34d3c9d1a97c54d08c1c593b20896952
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoseveral improvements
José Bollo [Wed, 23 Mar 2016 15:05:22 +0000 (16:05 +0100)]
several improvements

Change-Id: Id21bd735b7e1e24993ae93bc9f3634c0298d6f12
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agosimplification of config
José Bollo [Wed, 23 Mar 2016 14:00:15 +0000 (15:00 +0100)]
simplification of config

Change-Id: Id81932c67aa3a0b86f70eea008f8a90455e03d77
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agomoves more helpers from config to helper-api
José Bollo [Wed, 23 Mar 2016 12:31:23 +0000 (13:31 +0100)]
moves more helpers from config to helper-api

Change-Id: I5bc012ebe79c0b3f6cb89ac56c994e2a9d7ed5e9
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agorest-api: allow zero plugin
José Bollo [Wed, 23 Mar 2016 12:07:00 +0000 (13:07 +0100)]
rest-api: allow zero plugin

Change-Id: I80c88204a9b953bb3f1ba615fdd19d8ebb1fb30b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agomain: fix typo
José Bollo [Wed, 23 Mar 2016 12:06:02 +0000 (13:06 +0100)]
main: fix typo

Change-Id: If25a272a796306021523b114ee47b120755a9ea9
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoremoves save option
José Bollo [Wed, 23 Mar 2016 12:05:25 +0000 (13:05 +0100)]
removes save option

Change-Id: I2a935739985574f9463bf25884254a4ace3b4938
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agomoves helpers from config to helper-api
José Bollo [Wed, 23 Mar 2016 10:57:49 +0000 (11:57 +0100)]
moves helpers from config to helper-api

Change-Id: Iecba4a22718b76a3188986eae814c359d21bbd78
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agohttp-svc: renaming
José Bollo [Wed, 23 Mar 2016 12:02:12 +0000 (13:02 +0100)]
http-svc: renaming

Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoafb-hreq: adds redirect for directories
José Bollo [Wed, 23 Mar 2016 10:08:50 +0000 (11:08 +0100)]
afb-hreq: adds redirect for directories

Change-Id: I6e069506025687b3bb4e61864667358f4f527e62
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoafb-hreq: creation of hreq classe
José Bollo [Wed, 23 Mar 2016 09:04:13 +0000 (10:04 +0100)]
afb-hreq: creation of hreq classe

Change-Id: I13bc04fe145a65f5f05a9b75ef470e952f6e191d
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agohttp-svc: internal renaming
José Bollo [Wed, 23 Mar 2016 08:29:46 +0000 (09:29 +0100)]
http-svc: internal renaming

Changes the names of structures:
 - struct afb_req becomes struct afb_hreq
 - struct afb_req_post becomes struct afb_hreq_post

This new 'h', meaning HTTP, is insert to avoid mix-up
with api requests.

Change-Id: Ief08ff2d5494a2a0322cb2fa1903da90ec91f147
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agohttp-svc: handle alises more efficiently
jobol [Tue, 22 Mar 2016 15:58:03 +0000 (16:58 +0100)]
http-svc: handle alises more efficiently

but buggy see later commit

Change-Id: I82557a20f646bf3ceb159fc5e664a9a5655d2011
Signed-off-by: jobol <jobol@nonadev.net>
8 years agoafb-method: creation
jobol [Tue, 22 Mar 2016 15:35:13 +0000 (16:35 +0100)]
afb-method: creation

also changed the licensing

Change-Id: Ib50a6991b066a00363f36688dd485c7772014088
Signed-off-by: jobol <jobol@nonadev.net>
8 years agohttp-svc: work in progress proposal
José Bollo [Fri, 18 Mar 2016 17:04:31 +0000 (18:04 +0100)]
http-svc: work in progress proposal

This commits is a proposal for rewriting part of the daemon.

Change-Id: I2491530bc281c8fd674ee3ce01ac5b904387d7d1
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agohttp-svc: fix bug of uninitialized response
José Bollo [Fri, 18 Mar 2016 13:53:10 +0000 (14:53 +0100)]
http-svc: fix bug of uninitialized response

Change-Id: I98dd53d6994e11d674916546173875196732aabc
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agotypo
José Bollo [Thu, 17 Mar 2016 16:59:46 +0000 (17:59 +0100)]
typo

Change-Id: Ib3c2ffb80f2401c589fa86f4cac2f4011c09bb03
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agomain: split the main in two parts
José Bollo [Thu, 17 Mar 2016 15:10:40 +0000 (16:10 +0100)]
main: split the main in two parts

Change-Id: I327ad2ad4f94b784685fb7fef972f8d9e85b8f92
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agomain: use valid exit value
José Bollo [Thu, 17 Mar 2016 10:55:23 +0000 (11:55 +0100)]
main: use valid exit value

Change-Id: Id49850dbb1152f4b6cbdbafc42268974e5071897
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agomain: change location of AFB_options definition
José Bollo [Thu, 17 Mar 2016 10:39:25 +0000 (11:39 +0100)]
main: change location of AFB_options definition

The definition of AFB_options is not of interest
other places than main.c.

Change-Id: Id0af73a749554c02d7578db518e41628e2793008
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agolocal-def: dispatch some definitions
José Bollo [Thu, 17 Mar 2016 10:29:30 +0000 (11:29 +0100)]
local-def: dispatch some definitions

local-def.h contains too many things.
This commit is a little step for cleaning it.

Change-Id: I487860f9f56adbd40cae12a3b19930bbb31c67bc
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoafm-main-plugin: update utils-jbus
José Bollo [Wed, 16 Mar 2016 21:14:40 +0000 (22:14 +0100)]
afm-main-plugin: update utils-jbus

Change-Id: I0c433bdd1136d4150e612468aab91dfcda383633
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoremoved private api and fix some few warnings
José Bollo [Wed, 16 Mar 2016 21:02:24 +0000 (22:02 +0100)]
removed private api and fix some few warnings

Change-Id: I8d4427c94ca2b88a4f1add70b065d0b6d0865286
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoAdd warning detection and improve
José Bollo [Wed, 16 Mar 2016 14:47:37 +0000 (15:47 +0100)]
Add warning detection and improve

Change-Id: Id4fc86b86d55aac578d84b4d2357c1a2e600c58b
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agohttp-svc: switch to epoll model
José Bollo [Wed, 16 Mar 2016 12:42:51 +0000 (13:42 +0100)]
http-svc: switch to epoll model

This prepares to handle notification.
It has the side effect to make the server mono-threaded.
This might be temporarily or forever, depending on next
studies.

Change-Id: I8a8b2b68c78c33b3ca861180bf120cf09a24b05e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoFix horrendously wrong Volume check in Audio plugin
Manuel Bachmann [Tue, 23 Feb 2016 12:15:24 +0000 (13:15 +0100)]
Fix horrendously wrong Volume check in Audio plugin

Volume bound check was always false.

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
8 years agorefactor cookie to add #port
José Bollo [Tue, 23 Feb 2016 08:48:15 +0000 (09:48 +0100)]
refactor cookie to add #port

Change-Id: Ieac2936413a59b80db66e9ba69d586d7fa481ef8
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agomain: fix parsing of option alias
José Bollo [Thu, 18 Feb 2016 10:29:36 +0000 (11:29 +0100)]
main: fix parsing of option alias

Change-Id: Ib0eb70e94fabc61ef6ceb22bafa6006d759a7984
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoAllow Multiple TokenCreate when --token=""
Fulup Ar Foll [Wed, 17 Feb 2016 13:42:27 +0000 (14:42 +0100)]
Allow Multiple TokenCreate when --token=""

8 years agoMerge origin/master
Fulup Ar Foll [Wed, 17 Feb 2016 13:41:07 +0000 (14:41 +0100)]
Merge origin/master

8 years agoAllow Multiple TokenCreate when --token=""
Fulup Ar Foll [Wed, 17 Feb 2016 13:38:58 +0000 (14:38 +0100)]
Allow Multiple TokenCreate when --token=""

8 years agoAudio plugin: choose between Pulse/ALSA at runtime
Manuel Bachmann [Wed, 17 Feb 2016 10:31:59 +0000 (11:31 +0100)]
Audio plugin: choose between Pulse/ALSA at runtime

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>
8 years agoafm-main-plugin: fix bug
José Bollo [Tue, 16 Feb 2016 07:18:31 +0000 (08:18 +0100)]
afm-main-plugin: fix bug

Change-Id: Ia39f4d38b6ace8fba9731bf1f0c700487a0e8063
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoafm-main-plugin: adds mode auto
José Bollo [Mon, 15 Feb 2016 10:59:53 +0000 (11:59 +0100)]
afm-main-plugin: adds mode auto

Change-Id: Ic707b52dd6029bd60242f03fcc04b6596f1cb017
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoadd option for signaling readyness
José Bollo [Mon, 15 Feb 2016 10:46:37 +0000 (11:46 +0100)]
add option for signaling readyness

Change-Id: I22e64d41f51683c6c15df77b546e3cc98f427eec
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agorest-api: fix verbosity of upload message
José Bollo [Mon, 15 Feb 2016 10:06:02 +0000 (11:06 +0100)]
rest-api: fix verbosity of upload message

Change-Id: Ie9f2e513bf44b46eabf644792cc7ad0d04f10755
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoadds mode management
José Bollo [Sun, 14 Feb 2016 14:16:48 +0000 (15:16 +0100)]
adds mode management

Change-Id: I73240e346a06924c314961871e789c69e279cb48
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agosession: reset the timestamp on refresh
José Bollo [Thu, 11 Feb 2016 13:25:45 +0000 (14:25 +0100)]
session: reset the timestamp on refresh

Change-Id: Id685bcfa91791427a92aa69eb70cfcd1f8766e46
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoafm-main-plugin: utils-jbus: fix bug that blocked
José Bollo [Tue, 9 Feb 2016 16:43:41 +0000 (17:43 +0100)]
afm-main-plugin: utils-jbus: fix bug that blocked

Change-Id: Id31e2c93a1a128d768f9a55fdc739b0067b85121
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoafm-main-plugin: Adds verbose prompts
José Bollo [Tue, 9 Feb 2016 12:36:53 +0000 (13:36 +0100)]
afm-main-plugin: Adds verbose prompts

Change-Id: I85f1ca065cd659f974f699ab6b5540afd89bf5eb
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoAdds a new option: mode
José Bollo [Tue, 9 Feb 2016 09:23:41 +0000 (10:23 +0100)]
Adds a new option: mode

The option mode can have 3 values: local, remote, global.
It indicates wether the daemon serves:
 - loopback (local)
 - external interface (remote)
 - both (global)

Change-Id: Ibd6c25da692e607b8e0ce793da11cca88db050a2
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoafm-main-plugin: improves error reporting
José Bollo [Tue, 9 Feb 2016 09:23:08 +0000 (10:23 +0100)]
afm-main-plugin: improves error reporting

Change-Id: I766f96f74434dfc0ec578e20769f91ce0796363e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoavoid use of keyword "private"
José Bollo [Mon, 8 Feb 2016 09:37:01 +0000 (10:37 +0100)]
avoid use of keyword "private"

Change-Id: I7efe1ce2e6a49b6211298e509ae0b21573d6776a
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agotypo: minor improvement
José Bollo [Mon, 8 Feb 2016 09:29:45 +0000 (10:29 +0100)]
typo: minor improvement

Change-Id: Iaf16a80d3fcb8887260f351448c68fd91c9387fe
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoremoves unused smack field
José Bollo [Mon, 8 Feb 2016 09:17:20 +0000 (10:17 +0100)]
removes unused smack field

Change-Id: I3388fa366c44c96d2ebf37ba57ed1b3acce82869
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years ago.gitignore: ignore more files
José Bollo [Tue, 2 Feb 2016 13:40:48 +0000 (14:40 +0100)]
.gitignore: ignore more files

Change-Id: Id4b69276233a8119d67cfb2bb951279f31a16694
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agorest-api: catch error from pluginRegisterFct()
Yannick Gicquel [Thu, 28 Jan 2016 15:31:50 +0000 (16:31 +0100)]
rest-api: catch error from pluginRegisterFct()

in case NULL is returned, log an error and do not register
the plugin.

Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh>
8 years agorest-api: fixup AFB_plugins allocated references
Yannick Gicquel [Thu, 28 Jan 2016 15:29:31 +0000 (16:29 +0100)]
rest-api: fixup AFB_plugins allocated references

plugins handles pointer to AFB_plugin structures which
are located in each dynamically loaded plugin.

Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh>
8 years agoFix Error Message
Fulup Ar Foll [Wed, 27 Jan 2016 10:58:25 +0000 (11:58 +0100)]
Fix Error Message

8 years agoafm-plugin: update utils-jbus version
José Bollo [Tue, 26 Jan 2016 20:40:16 +0000 (21:40 +0100)]
afm-plugin: update utils-jbus version

Change-Id: Iafc6b6776bf10722a6217678c5a6847cc3fb0bfb
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agoFinalize Media Plugin upload API with full transfer logic
Manuel Bachmann [Tue, 26 Jan 2016 15:41:24 +0000 (16:41 +0100)]
Finalize Media Plugin upload API with full transfer logic

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>
8 years agoMerge branch 'master' of github.com:iotbzh/afb-daemon
Fulup Ar Foll [Tue, 26 Jan 2016 15:36:04 +0000 (16:36 +0100)]
Merge branch 'master' of github.com:iotbzh/afb-daemon

8 years agofixe getPostPath for afm-mail plugin
Fulup Ar Foll [Tue, 26 Jan 2016 15:35:37 +0000 (16:35 +0100)]
fixe getPostPath for afm-mail plugin

8 years agoFix getPostFile() upload function, return bare JSON in list
Manuel Bachmann [Tue, 26 Jan 2016 14:32:37 +0000 (15:32 +0100)]
Fix getPostFile() upload function, return bare JSON in list

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>
8 years agoMerge branch 'master' of github.com:iotbzh/afb-daemon
Fulup Ar Foll [Tue, 26 Jan 2016 12:06:55 +0000 (13:06 +0100)]
Merge branch 'master' of github.com:iotbzh/afb-daemon

8 years agoFixed Post File Upload
Fulup Ar Foll [Tue, 26 Jan 2016 12:06:17 +0000 (13:06 +0100)]
Fixed Post File Upload

8 years agoafm-main: adds install/uninstall
José Bollo [Tue, 26 Jan 2016 11:03:03 +0000 (12:03 +0100)]
afm-main: adds install/uninstall

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>
8 years agoGetPostPath Ongoing
Fulup Ar Foll [Tue, 26 Jan 2016 08:16:56 +0000 (09:16 +0100)]
GetPostPath Ongoing

8 years agoMedia Plugin list API now returns a JSON object
Manuel Bachmann [Mon, 25 Jan 2016 13:48:02 +0000 (14:48 +0100)]
Media Plugin list API now returns a JSON object

We now return a JSON object instead of an arbitrary string
with the "list" API.

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
8 years agoFix Media Plugin refresh, add seek API
Manuel Bachmann [Mon, 25 Jan 2016 12:05:45 +0000 (13:05 +0100)]
Fix Media Plugin refresh, add seek API

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>
8 years agomain: minor improvement of daemonizing
José Bollo [Mon, 25 Jan 2016 10:01:49 +0000 (11:01 +0100)]
main: minor improvement of daemonizing

Change-Id: Iba9cb6ae3e18524a99cb82e521b4ca1aeec8d972
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agohttp-svc: refactor of httpdLoop
José Bollo [Mon, 25 Jan 2016 09:38:04 +0000 (10:38 +0100)]
http-svc: refactor of httpdLoop

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>
8 years agoindent
José Bollo [Mon, 25 Jan 2016 09:19:09 +0000 (10:19 +0100)]
indent

Change-Id: Icea77134a93c643a39bd6fd1d19a7820f56fe230
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
8 years agomain: frankly removes smack argument
José Bollo [Mon, 25 Jan 2016 09:10:45 +0000 (10:10 +0100)]
main: frankly removes smack argument

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>
8 years agoafm-main-plugin: fix fatal error on initialisation
José Bollo [Sat, 23 Jan 2016 12:33:10 +0000 (13:33 +0100)]
afm-main-plugin: fix fatal error on initialisation

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>
8 years agoImplement Media Plugin upload API, update README.md
Manuel Bachmann [Fri, 22 Jan 2016 11:25:51 +0000 (12:25 +0100)]
Implement Media Plugin upload API, update README.md

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>
8 years agoAdd choose, play, pause, stop to Media Plugin
Manuel Bachmann [Thu, 21 Jan 2016 04:53:58 +0000 (05:53 +0100)]
Add choose, play, pause, stop to Media Plugin

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>
8 years agoFix Media Plugin content list API
Manuel Bachmann [Wed, 20 Jan 2016 15:31:00 +0000 (16:31 +0100)]
Fix Media Plugin content list API

Listing content had various pointer-related issues.

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
8 years agoAdd Media Plugin
Manuel Bachmann [Mon, 11 Jan 2016 09:20:21 +0000 (10:20 +0100)]
Add Media Plugin

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>
8 years agoUpdate README.md (PulseAudio optional dependency)
Manuel Bachmann [Mon, 11 Jan 2016 01:52:38 +0000 (02:52 +0100)]
Update README.md (PulseAudio optional dependency)

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
8 years agoAudio Plugin: add PulseAudio support
Manuel Bachmann [Mon, 11 Jan 2016 01:43:19 +0000 (02:43 +0100)]
Audio Plugin: add PulseAudio support

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>
8 years agoUpdate README.md (plugins, code sample)
Manuel Bachmann [Thu, 7 Jan 2016 10:55:39 +0000 (11:55 +0100)]
Update README.md (plugins, code sample)

Updated :
- plugins are now implemented ;
- data structures in code sample have changed ;
- various typos and style details.

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
8 years agoFix Audio/Radio reinitialization issue
Manuel Bachmann [Wed, 6 Jan 2016 12:56:00 +0000 (13:56 +0100)]
Fix Audio/Radio reinitialization issue

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>
8 years agoFix set_mute in corner cases
Manuel Bachmann [Tue, 5 Jan 2016 14:45:34 +0000 (15:45 +0100)]
Fix set_mute in corner cases

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
8 years agoFix Session Cookie
Fulup Ar Foll [Wed, 30 Dec 2015 10:41:54 +0000 (11:41 +0100)]
Fix Session Cookie

8 years agoFix Cookie Size [was to small]
Fulup Ar Foll [Wed, 30 Dec 2015 10:37:19 +0000 (11:37 +0100)]
Fix Cookie Size [was to small]

8 years agoAdded EmptyPost handling
Fulup Ar Foll [Wed, 30 Dec 2015 10:20:26 +0000 (11:20 +0100)]
Added EmptyPost handling

8 years agoFix mute status for Porter/Koelsch
Manuel Bachmann [Tue, 29 Dec 2015 20:11:44 +0000 (21:11 +0100)]
Fix mute status for Porter/Koelsch

Mute status on Porter/Koelsch is reversed, take this
into account.

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
8 years agoremoving netbeans private data
José Bollo [Tue, 29 Dec 2015 09:09:53 +0000 (10:09 +0100)]
removing netbeans private data

Change-Id: Icfc23e7086a8dbadcc8362a439282602488eac8b

8 years agoSwitch to unique token model
Fulup Ar Foll [Tue, 29 Dec 2015 01:15:07 +0000 (02:15 +0100)]
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>