aboutsummaryrefslogtreecommitdiffstats
path: root/include/afb/c++/binding-wrap.hpp
AgeCommit message (Collapse)AuthorFilesLines
2019-02-27Added a tutorial and fix few errorssandbox/ctxnop/binding-objectLoïc Collignon1-1/+2
Added the tuto-5 that show how to benefit from the new 'binding-object' header. Fix few errors that can cause segfault when dealing with events and use the right afb::req object for verbs. Change-Id: I0563dd72a2843b2b54c2e40398ba129aac05ff0c Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2019-02-27Update copyright dateJosé Bollo1-1/+1
Change-Id: I3aaa92b2bfb01699ee8ae609272e93032b6f1a9d Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2019-01-04Added an 'api' wrapperLoïc Collignon1-1/+154
New 'api' wrapper for 'api' related functions. Change-Id: If6fd7adad1d3172defffe020203b637ace17aa6e Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2019-01-04Reworked the event classLoïc Collignon1-8/+11
Added move semantic and remove invalidation method as it's not used anymore since we drop the support of APIv2. Change-Id: I291155cef3e55ca14c706aa2315ab8dbfd09dffb Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2019-01-04Fix multiple definition and castLoïc Collignon1-6/+3
The function was defined as many time as the header was included. Making it a weak function fix the issue. Also, a plain old C cast is required to make this constexpr valid. Change-Id: Iee5677873180accfddcad0b3a58f3776f9fd8c5e Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2019-01-04binding-wrap: Add verb initialisation for C++Jose Bollo1-0/+34
This new constexpr initialisation method accepts a callback receiving a afb::req instead of a afb_req_t. Change-Id: I742e3dcf1e81873e76f61c319198e3cf7ef5ec0f Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
2019-01-04Fix a template that use the wrong callback definitionLoïc Collignon1-1/+1
It used the legacy callback definition instead of the good one. Change-Id: I5ad6e881e9fb99f1076a6dfa9ded221ccfec4a03 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2019-01-04Drop APIv2 support on the C++ interfaceLoïc Collignon1-87/+3
The C++ interface is currently used only in APIv3. Change-Id: Idc53bc80a939292f9882fdc62849dd27e543cbf8 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2019-01-04Avoid relative path when including headersLoïc Collignon1-1/+1
Prefer the system path to include headers. Change-Id: Id20d7c07b628bb8da25abeef3bc10456693a93f9 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2019-01-02Added a new C++ APILoïc Collignon1-0/+692
You can create an API by inheriting a base class and overring the methods you want. Change-Id: I62fa5ee8f347cd4d7baa7df39c0fcd6c83c4c34e Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>