aboutsummaryrefslogtreecommitdiff
path: root/src/options.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.h')
-rw-r--r--src/options.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/options.h b/src/options.h
new file mode 100644
index 0000000..71259aa
--- /dev/null
+++ b/src/options.h
@@ -0,0 +1,19 @@
+#ifndef OPTIONS_H
+#define OPTIONS_H
+
+#include <stdbool.h>
+#include <stdint.h>
+
+typedef struct {
+ bool help;
+ uint32_t sector_size;
+ uint32_t buffer_size;
+
+ 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 */