diff options
Diffstat (limited to 'include/util.h')
-rw-r--r-- | include/util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/util.h b/include/util.h index f143d0c0..84318fe7 100644 --- a/include/util.h +++ b/include/util.h | |||
@@ -59,6 +59,12 @@ uint32_t parse_color(const char *color); | |||
59 | */ | 59 | */ |
60 | bool parse_boolean(const char *boolean, bool current); | 60 | bool parse_boolean(const char *boolean, bool current); |
61 | 61 | ||
62 | /** | ||
63 | * Given a string that represents a floating point value, return a float. | ||
64 | * Returns NAN on error. | ||
65 | */ | ||
66 | float parse_float(const char *value); | ||
67 | |||
62 | enum wlr_direction opposite_direction(enum wlr_direction d); | 68 | enum wlr_direction opposite_direction(enum wlr_direction d); |
63 | 69 | ||
64 | #endif | 70 | #endif |