summaryrefslogtreecommitdiff
path: root/hitomezashi_cli.h
diff options
context:
space:
mode:
authoruntir_l <87096069+untir-l@users.noreply.github.com>2022-02-18 10:15:06 +0000
committeruntir_l <87096069+untir-l@users.noreply.github.com>2022-02-18 10:15:06 +0000
commitc73c5ba7f5fcd78fc68417f500dbfac0f228f52a (patch)
treeb2e0fc5fc7d9ba3ece4e3003b0485086f5950033 /hitomezashi_cli.h
downloadhitomezashi-c73c5ba7f5fcd78fc68417f500dbfac0f228f52a.tar
hitomezashi-c73c5ba7f5fcd78fc68417f500dbfac0f228f52a.tar.gz
hitomezashi-c73c5ba7f5fcd78fc68417f500dbfac0f228f52a.zip
Initial commit
Diffstat (limited to 'hitomezashi_cli.h')
-rw-r--r--hitomezashi_cli.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/hitomezashi_cli.h b/hitomezashi_cli.h
new file mode 100644
index 0000000..0147e41
--- /dev/null
+++ b/hitomezashi_cli.h
@@ -0,0 +1,20 @@
+#ifndef HITOMEZASHI_CLI_H
+#define HITOMEZASHI_CLI_H
+
+#include <stddef.h>
+
+enum Hitomezashi_Cli_Exit_Code {
+ Hitomezashi_Cli_Exit_Code_Success = 0,
+ Hitomezashi_Cli_Exit_Code_Err_Handle_Args = 1,
+ Hitomezashi_Cli_Exit_Code_Err_Print_Help = 2,
+ Hitomezashi_Cli_Exit_Code_Err_Sdl_Init = 3,
+ Hitomezashi_Cli_Exit_Code_Err_State_Init = 4,
+ Hitomezashi_Cli_Exit_Code_Err_Save_Image = 5,
+};
+
+void hitomezashi_cli_handle_args(char **out_file_path, int *x_pattern_len, int *y_pattern_len, char **x_pattern, char **y_pattern, int *gap, int *thickness, int argc, char **argv);
+void hitomezashi_cli_help(void);
+char *hitomezashi_cli_ascii_binary_str_to_ints(char *ascii_str, size_t n);
+
+
+#endif // HITOMEZASHI_CLI_H