X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=include%2Futil.h;h=d08ac69df9cc4205dfcc791b7d8b76f77baa943e;hp=d58e21b7d675fd6946988a8c85fae5904c45d956;hb=HEAD;hpb=53648511b3859781f6a199773d0db54ede8e3f0f diff --git a/include/util.h b/include/util.h index d58e21b7..d08ac69d 100644 --- a/include/util.h +++ b/include/util.h @@ -125,7 +125,7 @@ void i3_restart(bool forget_layout); #if defined(__OpenBSD__) || defined(__APPLE__) -/* +/** * Taken from FreeBSD * Find the first occurrence of the byte string s in byte string l. * @@ -174,3 +174,9 @@ bool parse_long(const char *str, long *out, int base); * */ ssize_t slurp(const char *path, char **buf); + +/** + * Convert a direction to its corresponding orientation. + * + */ +orientation_t orientation_from_direction(direction_t direction);