aboutsummaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-11-09 20:46:31 +0100
committerThomas White <taw@physics.org>2018-11-09 20:46:31 +0100
commitd669499b143316318f12c091173196c85e57527f (patch)
tree93b7bdc0269b1294cb7b0efb8d6c1fcdf38decff /src/utils.h
parent1869d2648f4461f44350bf5014368117bd1df492 (diff)
Set furniture values in SS editor
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h8
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)