summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2015-12-30Added EmptyPost handlingFulup Ar Foll1-5/+4
2015-12-29Switch to unique token modelFulup Ar Foll1-1/+1
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 plugin loading logic, radio plugin loadingManuel Bachmann1-18/+19
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 Foll2-8/+8
2015-12-23Implement --ldpaths=dir1:dir2:dir...Fulup Ar Foll3-52/+98
2015-12-23Add plugin handle into request, pass it to free callbackManuel Bachmann2-24/+31
We need the global handle in requests, and in the free function. Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2015-12-23Restore Previous functionalities with a unique TokenFulup Ar Foll2-6/+8
2015-12-22New Session Model [compile but not tested]Fulup Ar Foll3-73/+66
2015-12-22Does not compileFulup Ar Foll2-10/+13
2015-12-22Merge origin/masterFulup Ar Foll1-8/+12
2015-12-22Fix Post with invalid pluginsFulup Ar Foll1-8/+12
2015-12-22Improve plugin logic, pass plugins count to sessionManuel Bachmann1-8/+12
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>
2015-12-22Fix Post JSON bugFulup Ar Foll1-1/+1
2015-12-22Fix "no plugins" detection, rename HelloWorld APIManuel Bachmann1-4/+11
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>
2015-12-21improved use of const qualifierJosé Bollo1-1/+1
Change-Id: I371bfb6fdbaec91c14c0f3e2f2a45952252f8e27
2015-12-21Export getFileUpload to helper-api.cFulup Ar Foll1-32/+32
2015-12-21Hack --plugins=pathFulup Ar Foll5-76/+217
2015-12-21Switch to a plugin modelManuel Bachmann1-10/+38
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>
2015-12-21Post File Working in Most casesFulup Ar Foll1-25/+33
2015-12-17Final modifications for Radio-Audio API communicationManuel Bachmann1-4/+4
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2015-12-17Remove Hashtable for session and cleanupFulup Ar Foll2-66/+132
2015-12-16Initial Audio pluginManuel Bachmann2-1/+6
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2015-12-16Added Timeout in ResponseFulup Ar Foll1-0/+2
2015-12-16Fix radio plugin loadingManuel Bachmann1-1/+1
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2015-12-16Fix plugins loading, cleanup and dispatch Radio API codeManuel Bachmann1-1/+2
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2015-12-16New tree organization, update CMake req. to 2.8.8.Manuel Bachmann7-1259/+2
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>
2015-12-16Add Middleware and change Hashtable technoFulup Ar Foll6-244/+283
2015-12-15Post En court Ne fonctionne pasFulup Ar Foll2-50/+60
2015-12-15Intermediary Version Does not CompileFulup Ar Foll6-143/+535
2015-12-14Post En court Ne fonctionne pasFulup Ar Foll2-36/+57
2015-12-14Integrated Post for Fileupload TestFulup Ar Foll1-0/+36
2015-12-14Document UUID dependency, make radio plugin buildableManuel Bachmann1-88/+90
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2015-12-14Fix Rootdir redirect for static filesFulup Ar Foll1-0/+1
2015-12-13Fixed Session Context Free with ctxFreeCBFulup Ar Foll6-27/+41
2015-12-12Proposal for Integration with sessionFulup Ar Foll1-46/+198
2015-12-12Added --token=xxxxx for initial shared secretFulup Ar Foll1-2/+2
2015-12-12Added --token=xxxxx for initial shared secretFulup Ar Foll4-3/+22
2015-12-12Fixed Plugin.private bug, added "no session mode" fixed plugin APIFulup Ar Foll8-99/+118
2015-12-12Added Session ManagementFulup Ar Foll8-127/+454
2015-12-11Add Radio API pluginManuel Bachmann3-5/+524
Add Radio API plugin source code, build with CMake. Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2015-12-10Fix &query errorFulup Ar Foll1-1/+1
2015-12-10Fix Json Message StructureFulup Ar Foll3-32/+97
2015-12-10Added Netbean to work with cmakeFulup Ar Foll1-1/+0
2015-12-10main: fix command-line help typosManuel Bachmann1-5/+5
Some "]" were missing in the command-line help text. Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2015-12-10Add CMake build files (required by Yocto build process)Manuel Bachmann2-1/+10
We now can use CMake by doing : $ mkdir build $ cd build $ cmake .. $ make $ make install Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2015-12-09DocFulup Ar Foll2-6/+1
2015-12-09fix a bug on by default indexFulup Ar Foll2-41/+25
2015-12-09Implemented --alias and made timeout reentrantFulup Ar Foll4-57/+88
2015-12-09Added POST, Plugin API signal protection, refactor HTML5 rewriteFulup Ar Foll7-183/+381
2015-12-08typoJosé Bollo1-1/+1
Change-Id: I1a7662c9c3360c716ecbea97f743fc404bd2088c