diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-08-26 10:49:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-26 10:49:49 -0400 |
commit | df7083a2d0842a3985747770774075a8f5ecdaef (patch) | |
tree | 2aad57ba7f7eec9fdb51b98859f6da826a4d39a1 /include/util.h | |
parent | Merge pull request #2488 from RyanDwyer/separate-gaps-functions (diff) | |
parent | Remove layout.c (diff) | |
download | sway-df7083a2d0842a3985747770774075a8f5ecdaef.tar.gz sway-df7083a2d0842a3985747770774075a8f5ecdaef.tar.zst sway-df7083a2d0842a3985747770774075a8f5ecdaef.zip |
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 @@ | |||
4 | #include <stdint.h> | 4 | #include <stdint.h> |
5 | #include <stdbool.h> | 5 | #include <stdbool.h> |
6 | #include <unistd.h> | 6 | #include <unistd.h> |
7 | #include <sys/types.h> | 7 | #include <sys/types.h> |
8 | #include <wlr/types/wlr_output_layout.h> | ||
8 | #include <xkbcommon/xkbcommon.h> | 9 | #include <xkbcommon/xkbcommon.h> |
9 | 10 | ||
11 | enum movement_direction { | ||
12 | MOVE_LEFT, | ||
13 | MOVE_RIGHT, | ||
14 | MOVE_UP, | ||
15 | MOVE_DOWN, | ||
16 | MOVE_PARENT, | ||
17 | MOVE_CHILD, | ||
18 | }; | ||
19 | |||
10 | /** | 20 | /** |
11 | * Wrap i into the range [0, max[ | 21 | * Wrap i into the range [0, max[ |
12 | */ | 22 | */ |
@@ -71,4 +81,6 @@ char* resolve_path(const char* path); | |||
71 | char *b64_encode(const char* binaryData, size_t len, size_t *flen); | 81 | char *b64_encode(const char* binaryData, size_t len, size_t *flen); |
72 | unsigned char *b64_decode(const char *ascii, size_t len, size_t *flen); | 82 | unsigned char *b64_decode(const char *ascii, size_t len, size_t *flen); |
73 | 83 | ||
84 | bool sway_dir_to_wlr(enum movement_direction dir, enum wlr_direction *out); | ||
85 | |||
74 | #endif | 86 | #endif |