diff options
author | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-07-28 12:31:24 +0200 |
---|---|---|
committer | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-08-08 17:24:00 +0200 |
commit | dd128e02635393974aa490388f9d847885921479 (patch) | |
tree | 6f562c9ed12041da926f428d98f998a783f247ce /src/controller_hooks.hpp | |
parent | f1dcabc5b8e2d9b31cbb031ce2f8d8054e41a48a (diff) |
add controller_hooks, a proxy for calls from the controller to the application
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/controller_hooks.hpp')
-rw-r--r-- | src/controller_hooks.hpp | 24 |
1 files changed, 24 insertions, 0 deletions
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 <cstdint> + +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 |