From dd128e02635393974aa490388f9d847885921479 Mon Sep 17 00:00:00 2001 From: Marcus Fritzsch Date: Fri, 28 Jul 2017 12:31:24 +0200 Subject: [PATCH] add controller_hooks, a proxy for calls from the controller to the application Signed-off-by: Marcus Fritzsch --- src/CMakeLists.txt | 2 +- src/controller_hooks.hpp | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 src/controller_hooks.hpp diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1a1066e..aac21d9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -26,7 +26,7 @@ add_library(winman MODULE app.hpp app.cpp result.hpp afb_binding_api.hpp - afb_binding_glue.inl layers.cpp layers.hpp) + afb_binding_glue.inl layers.cpp layers.hpp controller_hooks.hpp) target_include_directories(winman PRIVATE diff --git a/src/controller_hooks.hpp b/src/controller_hooks.hpp new file mode 100644 index 0000000..170c2f0 --- /dev/null +++ b/src/controller_hooks.hpp @@ -0,0 +1,24 @@ +// +// Created by mfritzsc on 7/28/17. +// + +#ifndef TMCAGLWM_CONTROLLER_HOOKS_HPP +#define TMCAGLWM_CONTROLLER_HOOKS_HPP + +#include + +namespace wm { + +struct App; + +struct controller_hooks { + struct App *app; + + void surface_created(uint32_t surface_id); + + void surface_removed(uint32_t surface_id); +}; + +} // namespace wm + +#endif //TMCAGLWM_CONTROLLER_HOOKS_HPP -- 2.16.6