diff options
author | Brian Ashworth <[email protected]> | 2018-11-18 14:05:03 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2018-11-18 14:05:03 -0500 |
commit | b2c5248ad36a7a5cf342aa44a21a0956c025c43f (patch) | |
tree | 265d4ea923f1329d1e7661c0f92a242337318d58 /include/util.h | |
parent | b87250425fe13149e41b346f15c5cf808f376438 (diff) | |
parent | 70bc4c3ab6c408850543d827f788ef310fdb269c (diff) |
Merge pull request #3018 from sxmichaels/add-scroll-factor
Add scroll factor input command.
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); */ bool parse_boolean(const char *boolean, bool current); +/** + * Given a string that represents a floating point value, return a float. + * Returns NAN on error. + */ +float parse_float(const char *value); + enum wlr_direction opposite_direction(enum wlr_direction d); #endif |