aboutsummaryrefslogtreecommitdiff
path: root/include/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/util.h')
-rw-r--r--include/util.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/util.h b/include/util.h
index 9277fa6e..46ed1533 100644
--- a/include/util.h
+++ b/include/util.h
@@ -4,9 +4,19 @@
#include <stdint.h>
#include <stdbool.h>
#include <unistd.h>
-#include <sys/types.h>
+#include <sys/types.h>
+#include <wlr/types/wlr_output_layout.h>
#include <xkbcommon/xkbcommon.h>
+enum movement_direction {
+ MOVE_LEFT,
+ MOVE_RIGHT,
+ MOVE_UP,
+ MOVE_DOWN,
+ MOVE_PARENT,
+ MOVE_CHILD,
+};
+
/**
* Wrap i into the range [0, max[
*/
@@ -71,4 +81,6 @@ char* resolve_path(const char* path);
char *b64_encode(const char* binaryData, size_t len, size_t *flen);
unsigned char *b64_decode(const char *ascii, size_t len, size_t *flen);
+bool sway_dir_to_wlr(enum movement_direction dir, enum wlr_direction *out);
+
#endif