diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2009-08-21 02:36:28 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2009-08-21 02:36:28 +0200 |
commit | 07e2208a51d7bc64d4639c6eb56a4c33d8d87d7d (patch) | |
tree | e8c07df5f7218452eae4efc931c54efd4965477e /nick.h | |
parent | 131f5592347929c3d28a4a9406e242e2cfdd5db9 (diff) |
Added structs and functions for nick grouping.
Diffstat (limited to 'nick.h')
-rw-r--r-- | nick.h | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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 |