diff options
-rw-r--r-- | ahl-binding/ahl-binding.hpp | 11 |
1 files changed, 6 insertions, 5 deletions
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 <afb/afb-binding.h> #include <string.h> #include <ctl-config.h> @@ -43,13 +44,13 @@ extern "C" { class ahl_binding_t { using role_action = std::function<void(afb_request*, std::string, std::string, json_object*)>; - + private: afb_dynapi* handle_; std::vector<role_t> 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); |