summaryrefslogtreecommitdiffstats
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2016-08-08add validity functionsJosé Bollo2-0/+20
Change-Id: I56f4f6aebe673363c8b07c55f68ebbb1362b04fc Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-07-27fix unexpected ending spacesJosé Bollo2-2/+2
Change-Id: Ie7ebccb02b42e91457df3bdbf2a6f037b248400e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-07-27orthographJosé Bollo3-8/+8
Change-Id: I354649f885daf89426f3b1612127045fdf1dedcc Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-24adds a warning about afb/afb-plugin.h for GCCJosé Bollo1-2/+5
Change-Id: I72b62751fdbeaea3847312c62779fd0bd0ecb3ea Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-23vocabulary: moving from 'plugin' to 'binding'José Bollo5-247/+287
Change-Id: Ic9e118df2bede1fefbb591f8ae7887266b7324ca Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-13Service instanciationJosé Bollo1-0/+42
Adds the ability for a service to initiate calls to other services and to receive events in its own context. Change-Id: I5ff149a0231e551e9ce8a8de9658cb492a38cae1 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-09Make possible to call a method from a bindingJosé Bollo1-2/+14
The new request call 'afb_req_subcall' allows a binding to call the method of an other binding. Change-Id: I8538185be7a1663153a25db2bc940f9e2bdedb1a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-06-09Events: refactoringJosé Bollo3-2/+127
This new version allows to subscribe a client for an event. The event should first be created for the API (the API's prefix is added) using 'afb_daemon_make_event'. After that, plugins can subscribe or unsubscribe their clients (identified through requests) to the events that it generates. See 'afb_req_subscribe' and 'afb_req_unsubscribe'. Events created by 'afb_daemon_make_event' can be widely broadcasted using 'afb_event_broadcast' or pushed only to suscribers using 'afb_event_push'. Events can be destroyed using 'afb_event_drop'. Change-Id: I7c0bed5e625c2052dcd81c6bfe960def1fa032f3 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-29remove event sender interfaceJosé Bollo2-50/+8
Change-Id: I45735ccb4204821caecf89e3fdce08ec0a2471d7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-27improves documentationJosé Bollo2-0/+20
Change-Id: Ia86f95ee852ca0cc419b2fe6e796621e358c8b29 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-27improves documentationJosé Bollo1-5/+16
Change-Id: Idbd1b735571c2e35daed23d43f8d5d3990881533 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-27terminology: Level Of AssuranceJosé Bollo2-4/+4
Change-Id: I3c92aab34ba9414faf19d9a96d8f1de786f1e7b6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-27allows to remove file/line indicationJosé Bollo1-5/+14
Change-Id: I800dfdc68dc4538b2c46367a8594d7ac6a36824d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-27improves detection of formatting errorJosé Bollo1-0/+1
Change-Id: I426013cb841d6826c4904f68bf5fa1c653dd972c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-24Comments and fix of afb_req_unstoreJosé Bollo1-56/+170
Change-Id: I64e3a1769a225041a998b1b9406a5ebe1a7f19d7 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-24add log macros for pluginsJosé Bollo1-0/+23
Change-Id: I3de30aeb90a41ed8ee63ec1e19c6032440d65574 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-23Setting and checking LOAJosé Bollo2-7/+33
Change-Id: I02c3795c6e212491605861228eb60b731be78537 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-22Add verbs for closing and setting LOAJosé Bollo1-0/+13
These new verbs are now available to plugins. LOA is the level-of-authorisation. The usage of these new verbs must be protected by a mechanism that is still to be done. Change-Id: Ia591fb6bf9cd16956dc95658c5ba3a24ee4380be Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-22Fix AFB_SESSION_CREATE behaviourJosé Bollo1-0/+11
This commit allows to call methods having AFB_SESSION_CREATE at any time. This commit prepares the future LOA (level of authorization) implementation that wille soon replace the deprecated mechanism of AFB_SESSION_CREATE. Change-Id: Ia3e99186e012fcd55a6c81a7067ab5b4aca21e4d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-19minor: documenting and cleaningJosé Bollo1-1/+20
Change-Id: Ia5a84655ac7f881682409c3c6ed72e395c86a34d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-18adds a pkgconfig fileJosé Bollo1-1/+1
Change-Id: Ic0d143f282feef7335c7ea2bf589df90af4eef2f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-17event sender: better namingJosé Bollo2-10/+10
Change-Id: I82d918cd14b1e368ef509fa3a1b21c3e55a6b98d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-17improves plugin interfaceJosé Bollo1-38/+89
This commit improves the names and the organisation of the plugin interface for the developpers. Change-Id: Iaf191efbf8fd5d248884304b648258f0770ec5f5 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-17provides developper filesJosé Bollo4-2/+3
Change-Id: I0e41a0db778c69b5f5ce71115d495b2bb8b4cffe Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-13cleaning copyrightsJosé Bollo3-3/+3
Change-Id: I4ff7349b1a87f92a7d9f378c715054061f06df57 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-10Refactoring requests and context handlingJosé Bollo2-42/+37
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-09improves namingJosé Bollo1-3/+3
Change-Id: If334a26fada7bd234a6c71bee32b7b700f85c87c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-04try to avoid unnecessary copyJosé Bollo1-2/+2
Change-Id: I98cd69133ba3babb2719fad8c7e31c4dcaf1ae97 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-05-04Switch to libsystemd eventsJosé Bollo2-65/+18
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é Bollo1-0/+1
Change-Id: Id9159d33937dc23342d32892f77998fb8cef0000 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-27adds store/unstore for afb_reqJosé Bollo1-1/+17
Change-Id: If93e243378efbb6329bb9cc60d869261ddc33c48 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-19refactoring context handlingJosé Bollo2-22/+37
Change-Id: I0e5a900efbd94b66f309ff4d0d49a6406585203f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-19prepares event propagationJosé Bollo3-11/+100
Change-Id: Ib824c6dea1837cc1cbb70a2c82363c9b0a0517d4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-15use upoll for event loopJosé Bollo3-13/+14
also add '#pragma once' in headers Change-Id: I90cc2d53ec60d4d1e66cf0f229109621e4019864 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-08refactoring req interfaceJosé Bollo1-8/+19
Change-Id: I6fc9246099c34f62c82e060cf014a63b0e8f63d8 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-07improves file handlingJosé Bollo1-3/+3
Change-Id: I285cb6333d939a8afed07d8388d1d7850e50fe28 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-05new main loop in placeJosé Bollo2-2/+4
Change-Id: If297e0a76e74422d456447be52cca460c9e237b3 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-05fix context valuesJosé Bollo1-1/+1
Change-Id: I8a904fe7e0e895854729ae852b63c090f6c5bb5f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-05start epoll integration by upollJosé Bollo2-8/+31
Change-Id: If137a21e6f411775446393525ad7512421d7780e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-05refactored verbosityJosé Bollo1-1/+1
Change-Id: Ibbf6645fbf1149687be9a7475773685cfb06b514 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-04work in progress, session handlingJosé Bollo2-2/+41
Change-Id: I0393346280825e24a34e8db386160d857723b841 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-02refactoring in progress (tbf)José Bollo1-0/+65
Change-Id: I090ff42572a56c1d3ed3dbeccddf195d3bc09aa3 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-01work in progress (tbf)José Bollo3-243/+19
Change-Id: I1c4b48bc56a17b7351b57c3d4da53bd89465fff4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-01work in progress (tbf)José Bollo2-54/+104
Change-Id: I01f72892530bb4ef14a7216a112812026a367bfa Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-04-01work in progressJosé Bollo2-40/+17
Change-Id: I3df95def03bb26ca4d1a52f7cd94b0fb67375d4c Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-03-31refactoring (in progress, tbf)José Bollo2-14/+7
Change-Id: I8f2684a38d0894d827510d9a171ee6d5c39fb55e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-03-30refactoring (in progress, tbf)José Bollo1-4/+0
Change-Id: I7461983aa3177f8ae54ca72761d916e646888fca Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-03-30renaming of field apiJosé Bollo1-1/+1
Change-Id: I41ffc32e86e1c8c0f86fb1b06c2f8054867a9bc2 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-03-30refactor context usageJosé Bollo1-8/+0
Change-Id: I5ba57724eac605ef6e5a134ab7d9db56d2df4a07 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2016-03-30removes uneeded dataJosé Bollo1-1/+0
Change-Id: Id95e2dcfc0a6cbf34799559be683fa9244aa82db Signed-off-by: José Bollo <jose.bollo@iot.bzh>