Statistics
| Branch: | Tag: | Revision:

root / lib / filter-manager.h @ aebfd4cc

History | View | Annotate | Download (745 Bytes)

1
/* SylFilter - a message filter
2
 *
3
 * Copyright (C) 2011 Hiroyuki Yamamoto
4
 * Copyright (C) 2011 Sylpheed Development Team
5
 */
6

    
7
#ifndef __FILTER_MANAGER_H__
8
#define __FILTER_MANAGER_H__
9

    
10
#include "filter.h"
11

    
12
XFilterManager *xfilter_manager_new        (void);
13

    
14
void         xfilter_manager_filter_add        (XFilterManager *mgr, XFilter *filter);
15
void         xfilter_manager_filter_remove        (XFilterManager *mgr, XFilter *filter);
16

    
17
int         xfilter_manager_add_filters        (XFilterManager *mgr, XFilterConstructorFunc ctors[]);
18

    
19
XFilterResult *xfilter_manager_run        (XFilterManager *mgr, XMessageData *msgdata);
20

    
21
/* clears only internal state */
22
void         xfilter_manager_done                (XFilterManager *mgr);
23

    
24
void         xfilter_manager_free                (XFilterManager *mgr);
25

    
26
#endif /* __FILTER_MANAGER_H__ */