Alex 'AdUser' Z
9 years ago
1 changed files with 15 additions and 0 deletions
@ -0,0 +1,15 @@
|
||||
#ifndef F2B_REGEX_H_ |
||||
#define F2B_REGEX_H_ |
||||
|
||||
#define HOST_TOKEN "<HOST>" |
||||
|
||||
typedef struct _regex f2b_regex_t; |
||||
|
||||
f2b_regex_t * f2b_regex_create (const char *pattern, bool icase); |
||||
void f2b_regex_destroy(f2b_regex_t *regex); |
||||
|
||||
f2b_regex_t * f2b_regexlist_append(f2b_regex_t *list, f2b_regex_t *regex); |
||||
bool f2b_regexlist_match (f2b_regex_t *list, const char *line, char *matchbuf, size_t matchbuf_size); |
||||
f2b_regex_t * f2b_regexlist_destroy(f2b_regex_t *list); |
||||
|
||||
#endif /* F2B_REGEX_H_ */ |
Loading…
Reference in new issue