Statistics
| Branch: | Tag: | Revision:

root / lib / filter-private.h @ 4012ec30

History | View | Annotate | Download (850 Bytes)

1

    
2
#ifndef __FILTER_PRIVATE_H__
3
#define __FILTER_PRIVATE_H__
4

    
5
#include "filter.h"
6

    
7
struct _XFilterManager
8
{
9
        XFilter *filter_list;
10
        XMessageData *data;
11
        char *original_encoding;
12
        char *sender;
13
        char *recipient;
14
        char *subject;
15
};
16

    
17
struct _XFilter
18
{
19
        XFilterType type;
20
        char *name;
21
        char *input_mime_types[8];
22
        char *output_mime_type;
23

    
24
        XFilterManager *manager;
25
        XFilter *next;
26
};
27

    
28
struct _XContentFilter
29
{
30
        XFilter filter;
31

    
32
        XFilterStatus (*content_filter_func) (XFilter *filter, const XMessageData *data, XMessageData **result);
33
};
34

    
35
struct _XTestFilter
36
{
37
        XFilter filter;
38

    
39
        XFilterStatus (*test_filter_func)    (XFilter *filter, const XMessageData *data);
40
};
41

    
42
struct _XMessageData
43
{
44
        char *mime_type;
45
        char *content;
46
};
47

    
48
struct _XFilterResult
49
{
50
        XFilterStatus status;
51
        XMessageData *msgdata;
52
        double probability;
53
};
54

    
55
#endif /* __FILTER_PRIVATE_H__ */