Statistics
| Branch: | Tag: | Revision:

root / lib / filters / whitelist-filter.c @ 4012ec30

History | View | Annotate | Download (391 Bytes)

1
#include <glib.h>
2

    
3
#include "filter.h"
4
#include "whitelist-filter.h"
5

    
6

    
7
static XFilterStatus xfilter_whitelist_func(XFilter *filter, const XMessageData *data)
8
{
9
        return XF_NOJUNK;
10
}
11

    
12
XFilter *xfilter_whitelist_new(void)
13
{
14
        XFilter *filter;
15

    
16
        filter = xfilter_new(XF_TEST, "whitelist");
17
        xfilter_set_test_filter_func(X_TEST_FILTER(filter),
18
                                     xfilter_whitelist_func);
19

    
20
        return filter;
21
}