summaryrefslogtreecommitdiff
path: root/regexset.h
blob: aba44315176ffc0a8b30edbccdda765bafcc220e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _REGEXSET_H_
#define _REGEXSET_H_

#include <pcre.h>

struct regexset_t {
	pcre *text, *join, *part, *quit, *kick, *nick_changed, *log_opened, *day_changed;
	pcre_extra *text_e, *join_e, *part_e, *quit_e, *kick_e, *nick_changed_e, *log_opened_e, *day_changed_e;
	const char *log_date_format, *day_date_format;
};

void rs_init();
struct regexset_t *rs_add(const char *text, const char *join, const char *part,
		const char *quit, const char *kick, const char *nick_changed,
		const char *log_opened, const char *day_changed, const char *log_date_format,
		const char *day_date_format);
struct regexset_t *rs_get(int index);
void rs_free();

#endif