summaryrefslogtreecommitdiffstats
path: root/backend_common.h
diff options
context:
space:
mode:
authorSolomon Peachy <slp@sunrisemicro.com>2014-02-10 20:10:36 -0500
committerSolomon Peachy <slp@sunrisemicro.com>2014-02-10 20:10:36 -0500
commit175030cbee7fcf62e66a14d738c8eb8c0076e8ab (patch)
tree4b4041d9ef8966165f139baafee9bab785d38a53 /backend_common.h
parentc7db9288d514ad4b6965b097108a0d1e1acdbde2 (diff)
downloadselphy_print-175030cbee7fcf62e66a14d738c8eb8c0076e8ab.tar.gz
selphy_print-175030cbee7fcf62e66a14d738c8eb8c0076e8ab.tar.bz2
selphy_print-175030cbee7fcf62e66a14d738c8eb8c0076e8ab.zip
Massive overhaul of command line handling.
Completely untested with real printers. That happens tonight! :)
Diffstat (limited to 'backend_common.h')
-rw-r--r--backend_common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend_common.h b/backend_common.h
index f41aeaf..0d679ca 100644
--- a/backend_common.h
+++ b/backend_common.h
@@ -117,12 +117,12 @@ struct dyesub_backend {
char *name;
char *version;
char *uri_prefix;
- void (*cmdline_usage)(char *caller);
+ void (*cmdline_usage)(void);
void *(*init)(void);
void (*attach)(void *ctx, struct libusb_device_handle *dev,
uint8_t endp_up, uint8_t endp_down, uint8_t jobid);
void (*teardown)(void *ctx);
- int (*cmdline_arg)(void *ctx, int run, char *arg1, char *arg2);
+ int (*cmdline_arg)(void *ctx, int argc, char **argv);
int (*early_parse)(void *ctx, int data_fd);
int (*read_parse)(void *ctx, int data_fd);
int (*main_loop)(void *ctx, int copies);