summaryrefslogtreecommitdiff
path: root/nick.h
diff options
context:
space:
mode:
Diffstat (limited to 'nick.h')
-rw-r--r--nick.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/nick.h b/nick.h
new file mode 100644
index 0000000..8cac6d8
--- /dev/null
+++ b/nick.h
@@ -0,0 +1,20 @@
+#ifndef _NICK_H_
+#define _NICK_H_
+
+#include <pcre.h>
+
+struct nick_t {
+ char *name;
+ struct nick_regex_t {
+ pcre *re;
+ struct nick_regex_t *next;
+ } *regexes;
+ struct nick_t *next;
+};
+
+void nick_init();
+int nick_add(char *name);
+int nick_regex_add(struct nick_t *nick, char *re_s);
+void nick_free();
+
+#endif