summaryrefslogtreecommitdiffstats
path: root/options.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-08-08 15:13:32 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-08-08 15:13:32 -0400
commit0b7731ebb7c06fd73e945cec777960d450e8192c (patch)
treec9dfaf4f3f6a0335cbfe76d9e9db05267161236f /options.h
parentaf442be2fa586a98e8e4da1bb88a9236f5c191d2 (diff)
downloadkd-forest-0b7731ebb7c06fd73e945cec777960d450e8192c.tar.xz
Allow image size and initial position to be specified on the command line.
Diffstat (limited to 'options.h')
-rw-r--r--options.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/options.h b/options.h
index fe996f7..382f5fc 100644
--- a/options.h
+++ b/options.h
@@ -40,6 +40,9 @@ typedef struct {
mode_t mode;
selection_t selection;
color_space_t color_space;
+ unsigned int width, height;
+ size_t ncolors, npixels;
+ unsigned int x, y;
bool animate;
const char *filename;
unsigned int seed;
@@ -47,6 +50,6 @@ typedef struct {
} options_t;
bool parse_options(options_t *options, int argc, char *argv[]);
-void print_usage(FILE *file, const char *command);
+void print_usage(FILE *file, const char *command, bool verbose);
#endif // OPTIONS_H