aboutsummaryrefslogtreecommitdiff
path: root/options.h
diff options
context:
space:
mode:
Diffstat (limited to 'options.h')
-rw-r--r--options.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/options.h b/options.h
new file mode 100644
index 0000000..0c64bbd
--- /dev/null
+++ b/options.h
@@ -0,0 +1,20 @@
+#ifndef OPTIONS_H
+#define OPTIONS_H
+
+#include <stdbool.h>
+#include <stdint.h>
+
+typedef struct {
+ bool help;
+ uint32_t sector_size;
+ uint32_t buffer_size;
+ bool do_not_ask;
+
+ const char * in_file_path;
+ const char * ref_file_path;
+ const char * out_file_path;
+} options_t;
+
+int options_parse(int argc, char ** argv, options_t * const opts);
+
+#endif /* OPTIONS_H */