summaryrefslogtreecommitdiffstats
path: root/src/controller_hooks.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller_hooks.hpp')
-rw-r--r--src/controller_hooks.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/controller_hooks.hpp b/src/controller_hooks.hpp
index 47ab0ec..8618edc 100644
--- a/src/controller_hooks.hpp
+++ b/src/controller_hooks.hpp
@@ -23,6 +23,8 @@
#include <cstdint>
+#include <functional>
+
namespace wm {
struct App;
@@ -33,6 +35,8 @@ struct controller_hooks {
void surface_created(uint32_t surface_id);
void surface_removed(uint32_t surface_id);
+
+ void add_task(char const *name, std::function<void()> &&);
};
} // namespace wm