From 99c48b7bd407f061e22c6a14d94b0f880941e593 Mon Sep 17 00:00:00 2001 From: Stephane Desneux Date: Thu, 28 Jun 2018 22:35:50 +0200 Subject: ahl-binding: enable AFB_BINDING_WANT_DYNAPI symbol to be compatible with legacy dynapi calls Change-Id: I130408705f8052fec0bd6a6a49740922630ecb0c Signed-off-by: Stephane Desneux --- ahl-binding/ahl-binding.hpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'ahl-binding') diff --git a/ahl-binding/ahl-binding.hpp b/ahl-binding/ahl-binding.hpp index 66fce84..e76d7ef 100644 --- a/ahl-binding/ahl-binding.hpp +++ b/ahl-binding/ahl-binding.hpp @@ -35,6 +35,7 @@ extern "C" { #define AFB_BINDING_VERSION 0 + #define AFB_BINDING_WANT_DYNAPI #include #include #include @@ -43,13 +44,13 @@ extern "C" { class ahl_binding_t { using role_action = std::function; - + private: afb_dynapi* handle_; std::vector roles_; - + explicit ahl_binding_t(); - + void load_static_verbs(); @@ -58,9 +59,9 @@ private: int update_streams(); void update_stream(std::string hal, std::string stream, std::string deviceuri); int create_api_verb(role_t* r); - + void policy_open(afb_request* req, const role_t& role); - + public: static ahl_binding_t& instance(); int preinit(afb_dynapi* handle); -- cgit 1.2.3-korg