filter.h 355 Bytes
Newer Older
Cedric Roux's avatar
Cedric Roux committed
1 2 3 4 5 6 7
#ifndef _FILTER_H_
#define _FILTER_H_

#include "event.h"

typedef void filter;

Cedric Roux's avatar
Cedric Roux committed
8
filter *filter_and(filter *a, filter *b);
Cedric Roux's avatar
Cedric Roux committed
9 10 11 12 13 14
filter *filter_eq(filter *a, filter *b);
filter *filter_int(int v);
filter *filter_evarg(void *database, char *event_name, char *varname);

int filter_eval(filter *f, event e);

15 16
void free_filter(filter *f);

Cedric Roux's avatar
Cedric Roux committed
17
#endif /* _FILTER_H_ */