~ubuntu-branches/ubuntu/oneiric/bogofilter/oneiric

« back to all changes in this revision

Viewing changes to src/wordlists_base.h

  • Committer: Bazaar Package Importer
  • Author(s): Clint Adams
  • Date: 2004-06-27 09:22:31 UTC
  • Revision ID: james.westby@ubuntu.com-20040627092231-u26smic0nhp7rl4z
Tags: upstream-0.92.0
ImportĀ upstreamĀ versionĀ 0.92.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: wordlists_base.h,v 1.14 2004/06/05 19:40:25 relson Exp $ */
 
2
 
 
3
/*  constants and declarations for wordlists_base.c */
 
4
 
 
5
#ifndef WORDLISTS_CORE_H
 
6
#define WORDLISTS_CORE_H
 
7
 
 
8
#ifndef DATASTORE_H
 
9
typedef void *dsh_t;
 
10
#endif
 
11
 
 
12
extern  bool    config_setup;
 
13
 
 
14
typedef enum e_WL_TYPE {
 
15
    WL_REGULAR =        'R',
 
16
    WL_IGNORE  =        'I'
 
17
} WL_TYPE;
 
18
 
 
19
typedef struct wordlist_s wordlist_t;
 
20
struct wordlist_s
 
21
{
 
22
    /*@null@*/ wordlist_t *next;
 
23
    int index;
 
24
    /*@owned@*/ char *listname; /* resource name (for debug/verbose messages) */
 
25
    /*@owned@*/ char *filepath; /* resource path (for debug/verbose messages) */
 
26
    /*@owned@*/ dsh_t *dsh;     /* datastore handle */
 
27
    u_int32_t   msgcount[IX_SIZE];      /* count of messages in wordlist. */
 
28
    WL_TYPE     type;           /* 'I' for "ignore" */
 
29
    int         override;
 
30
};
 
31
 
 
32
void init_wordlist(const char* name, const char* path,
 
33
                   int override, WL_TYPE type);
 
34
 
 
35
void free_wordlists(void);
 
36
 
 
37
wordlist_t * default_wordlist(void);
 
38
int  set_wordlist_dir(const char* dir, priority_t precedence);
 
39
  
 
40
#endif  /* WORDLISTS_CORE_H */