summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2016-05-11daemon: make --token parameter mandatoryManuel Bachmann1-0/+5
The daemon now quits with an explicit error message instead of crashing if the "--token" parameter was omitted. Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
2016-05-10explicit use of json-cJosé Bollo5-5/+5
Change-Id: Iebf7309255d1285a5833c5490d32f518a9232ede Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-10typoJosé Bollo3-3/+2
Change-Id: Ida51275f75608e0b146a86d49bdb0e4b9c325fc0 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-10implmentation of dbus-service activatedJosé Bollo2-1/+73
Change-Id: I7fb1bb9d2e1f02fb746f45b803c0798ff0d7336c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-10refactored loggingJosé Bollo8-117/+131
Change-Id: Iec97d679b7e3baa430e614f8e6336d6487de0f25 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-10Refactoring requests and context handlingJosé Bollo17-289/+1001
Also adds a first (untested) implmentation of the afb services over dbus. Change-Id: Id1bdeccf75f3a70d3658bdaf0510d6e7b97f6c32 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-09ensure that the copy is done by libmicrohttpJosé Bollo1-1/+1
Change-Id: I68d10265e34953e3ad21197f616c838b4b8c2bad Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-09better cleanup on errorJosé Bollo1-1/+1
Change-Id: Icb78637f4e7ed905ae8df4bf2e1ba1e0d176dfa2 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-09better naming of event listenersJosé Bollo3-27/+26
Change-Id: I855d2aa1ebc0cc9fb220a338f4ce79410a58c040 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-04improves apiJosé Bollo2-0/+6
Change-Id: Id76ab70174e758f26caf9f883595f6cc003147d3 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-04try to avoid unnecessary copyJosé Bollo3-10/+10
Change-Id: I98cd69133ba3babb2719fad8c7e31c4dcaf1ae97 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-04switch logs to systemd journalJosé Bollo2-27/+6
Change-Id: I0d9e4ad5a1a18aac1b81e00dc4632823653beaed Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-04Switch to libsystemd eventsJosé Bollo9-394/+162
This patch removes part of code that are not specific in favour of a more shared library. Change-Id: I3506e7514181cfbed753559bb65460f95b2141c9 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-27first add of asynchonous handlingJosé Bollo4-32/+80
Change-Id: Id9159d33937dc23342d32892f77998fb8cef0000 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-26Improves websock APIJosé Bollo2-43/+113
Change-Id: I4c812382751c244e016041af53380e79ac63edd4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-26improves test casesJosé Bollo1-54/+40
Change-Id: Ib446bddd5ff2fba39dda02cad7ede4f63f576893 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-26fix warning signed/unsignedJosé Bollo1-1/+1
Change-Id: Iefff8428c64b1432b95affe09273ce66bc7046ff Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-26predeclare the structureJosé Bollo1-0/+1
Change-Id: I11173ae47dec95e0573929ebe941a01f8da0b038 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-26simplify handling of MHD_runJosé Bollo1-16/+3
Change-Id: I96c89ef38d44cd25e7e7453a81c75cd790a8d54b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-25avoid reentering MHD_runJosé Bollo1-2/+22
Change-Id: I54547f52c44b05573190cd226f71ee9d40181300 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-25better handling of lengthsJosé Bollo1-4/+3
Change-Id: Ia5f440bd84d18155dbe26f311c3a070238c17444 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-25Add commentsjobol1-11/+73
Change-Id: If9ec624786a64cb716e37acbad0c8d30c3bb8265
2016-04-21manages reference counting for eventsJosé Bollo1-1/+3
Events are sent to an unknown count of receivers. For this reason, the function push should not consume the json object given. Change-Id: Ie6c60074bd3822e7107d670f905cc86f56f826bf Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-21websocket implementing cleanupJosé Bollo2-18/+12
Change-Id: I85ee8eb60ef5d37ce1a82044ae317d2a17d3bec8 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-21websocket refactoringJosé Bollo4-92/+273
Change-Id: Ia39ec6c01ce1fc6b3921b0433ab872d47ebdbbc4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-21handles closing in callbacksJosé Bollo1-10/+19
Change-Id: I7c12c31957794910cd92fdfe74257e6faae8770a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-21improves decoupling from afbJosé Bollo1-35/+54
Change-Id: If7fb9445e01edaa635cf78cb60237f623f749481 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-21handles disconnectionJosé Bollo1-1/+6
Change-Id: I0fce95b5ff4de8e826ceb4da1bc2ac86f21d70b1 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-21refactoring websockects low-levelJosé Bollo3-101/+127
Change-Id: Id0e2952fb61dba0415698642d9eb907f83e18d5b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-20better handling of multiple casesJosé Bollo1-3/+0
Change-Id: Id3f92fb10d33773701bbaca32353546d295170ff Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-20makes common code unicJosé Bollo5-60/+117
Change-Id: I22de2429c57c1329802b0e5783c725b7b475de79 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-19initial event handlerJosé Bollo4-7/+170
Change-Id: Idb92d6de9904d050b37ef0a5d664e82573ff640d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-19refactoring context handlingJosé Bollo8-43/+45
Change-Id: I0e5a900efbd94b66f309ff4d0d49a6406585203f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-19prepares event propagationJosé Bollo2-50/+36
Change-Id: Ib824c6dea1837cc1cbb70a2c82363c9b0a0517d4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-18changing the license to apache 2José Bollo4-61/+43
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-17set download pathJosé Bollo3-1/+49
Change-Id: Ib42157297a868056ab20338b806cc06e5322b274 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-17cleaner http handling in mainJosé Bollo1-60/+62
Change-Id: I3e13b73910217082f32c5775adefb643b3a91baf Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-15fix use of libmagicJosé Bollo1-8/+8
Change-Id: Ic772bf327b45f4ad74095d57a8e29a28663aa3d0 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-15use upoll for event loopJosé Bollo16-47/+174
also add '#pragma once' in headers Change-Id: I90cc2d53ec60d4d1e66cf0f229109621e4019864 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-14renamingsJosé Bollo2-90/+70
Change-Id: Ic4220708e010518c1cb13254bfbcfe7c9d034496 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-14removes use of printfJosé Bollo3-8/+8
Change-Id: I635e236e102837256c77fd4379ef9b11d850a4de Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-14only one contextJosé Bollo1-1/+0
Change-Id: Idd27b7d5a1ecd1925d4777e2d311110590f45a5e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-08enforce creation of contextesJosé Bollo1-2/+4
Change-Id: I5278cf0f73a417c98d2cd4c3572efed39766b2d5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-08simplificationJosé Bollo1-13/+2
Change-Id: I02a107da2908f62dd10b09c3d765a0e0dd48983e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-08restoring cookie of sessionJosé Bollo5-51/+111
Change-Id: I3bd1ba1827dee5a16dd927154f802689894cc6a3 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-08clean request dataJosé Bollo1-0/+5
Change-Id: I97d82de29374dcb9e576eef2dcd358698845226f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-08refactoring req interfaceJosé Bollo7-151/+277
Change-Id: I6fc9246099c34f62c82e060cf014a63b0e8f63d8 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-08new websocket handlingJosé Bollo5-421/+83
Change-Id: I71fc5ff0412af6badce77485c98016916c56d235 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-08refactored websocketsJosé Bollo8-263/+514
Change-Id: Ic41efc1cd0b89d183c5ed36182da989548be1c8d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-07typoJosé Bollo2-5/+1
Change-Id: I95bb55bcbd55b034bf6d24116334a61ab262fac5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>