diff options
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h index fc843c3..af3c7b8 100644 --- a/src/utils.h +++ b/src/utils.h @@ -27,11 +27,19 @@ #include <config.h> #endif +typedef enum +{ + UNITS_SLIDE, + UNITS_FRAC +} LengthUnits; extern void chomp(char *s); extern int safe_strcmp(const char *a, const char *b); extern int parse_double(const char *a, float v[2]); extern int parse_tuple(const char *a, float v[4]); +extern int parse_dims(const char *opt, double *wp, double *hp, + LengthUnits *wup, LengthUnits *hup, + double *xp, double *yp); #include <libintl.h> #define _(x) gettext(x) |