aboutsummaryrefslogtreecommitdiff
path: root/src/src_checker/checker.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/src_checker/checker.h')
-rw-r--r--src/src_checker/checker.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/src_checker/checker.h b/src/src_checker/checker.h
new file mode 100644
index 0000000..ad24942
--- /dev/null
+++ b/src/src_checker/checker.h
@@ -0,0 +1,35 @@
+#ifndef CHECKER_H
+# define CHECKER_H
+
+# include <unistd.h>
+# include "common.h"
+# include "libft.h"
+
+typedef enum
+{
+ STATUS_SUCCESS,
+ STATUS_FAILURE,
+ STATUS_ERROR
+} t_status;
+
+typedef enum
+{
+ ACTION_SA,
+ ACTION_SB,
+ ACTION_SS,
+ ACTION_PA,
+ ACTION_PB,
+ ACTION_RA,
+ ACTION_RB,
+ ACTION_RR,
+ ACTION_RRA,
+ ACTION_RRB,
+ ACTION_RRR,
+ ACTION_ERROR
+} t_action;
+
+t_status check(t_stack *a, t_stack *b);
+t_action read_action(void);
+t_action str_action(char *s);
+
+#endif