add controller_hooks, a proxy for calls from the controller to the application
[staging/windowmanager.git] / src / controller_hooks.hpp
diff --git a/src/controller_hooks.hpp b/src/controller_hooks.hpp
new file mode 100644 (file)
index 0000000..170c2f0
--- /dev/null
@@ -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