root / lib / filters / bayes-filter.h @ 4012ec30
History | View | Annotate | Download (488 Bytes)
| 1 | #ifndef __XFILTER_BAYES_H__
|
|---|---|
| 2 | #define __XFILTER_BAYES_H__
|
| 3 | |
| 4 | #include "filter.h" |
| 5 | |
| 6 | typedef struct _XFilterBayesLearnStatus |
| 7 | {
|
| 8 | int junk_words;
|
| 9 | int nojunk_words;
|
| 10 | int junk_learned_num;
|
| 11 | int nojunk_learned_num;
|
| 12 | } XFilterBayesLearnStatus; |
| 13 | |
| 14 | XFilter *xfilter_bayes_new(void);
|
| 15 | XFilter *xfilter_bayes_learn_new(void);
|
| 16 | |
| 17 | int xfilter_bayes_get_learn_status(XFilterBayesLearnStatus *status);
|
| 18 | int xfilter_bayes_reset_learn_count(void); |
| 19 | int xfilter_bayes_reset_all(void); |
| 20 | |
| 21 | #endif /* __XFILTER_BAYES_H__ */ |