diff options
author | Drew DeVault <[email protected]> | 2018-08-26 10:49:49 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2018-08-26 10:49:49 -0400 |
commit | df7083a2d0842a3985747770774075a8f5ecdaef (patch) | |
tree | 2aad57ba7f7eec9fdb51b98859f6da826a4d39a1 /include/util.h | |
parent | 1a30c50ef40e918942f96c9a399f9bf94c1c0116 (diff) | |
parent | 5dbbab7bdc56fc513eea2f9a39d722859a3b0c2e (diff) |
Merge pull request #2515 from RyanDwyer/remove-layout-file
Remove layout.c
Diffstat (limited to 'include/util.h')
-rw-r--r-- | include/util.h | 14 |
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 |