aboutsummaryrefslogtreecommitdiff
path: root/options.h
diff options
context:
space:
mode:
authorJan Sucan <sucanjan@fit.cvut.cz>2019-04-11 18:44:34 +0200
committerJan Sucan <sucanjan@fit.cvut.cz>2019-04-11 18:44:34 +0200
commit498c691eb0dd19b23f70421484aa6d738f35e73c (patch)
tree10f244796344981ee6e5ddc5f3912372d7c5990b /options.h
Initial commit
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 */