aboutsummaryrefslogtreecommitdiff
path: root/mcin/mcin.h
diff options
context:
space:
mode:
Diffstat (limited to 'mcin/mcin.h')
-rw-r--r--mcin/mcin.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/mcin/mcin.h b/mcin/mcin.h
new file mode 100644
index 0000000..5b6f78c
--- /dev/null
+++ b/mcin/mcin.h
@@ -0,0 +1,17 @@
+#ifndef _MCIN_H
+#define _MCIN_H
+
+#include <regex.h>
+
+#define MCIN_REGEX_COUNT 51
+
+typedef struct mcin_matcher {
+ regex_t regex_master;
+ regex_t regex[MCIN_REGEX_COUNT];
+} MCINMatcher;
+
+int mcin_matcher_init(MCINMatcher *out);
+void mcin_matcher_free(MCINMatcher *matcher);
+char *mcin_matcher_match(MCINMatcher *matcher, const char *str);
+
+#endif // _MCIN_H