~ubuntu-branches/ubuntu/raring/postfix/raring

« back to all changes in this revision

Viewing changes to src/util/name_mask.h

Tags: upstream-2.2.6
ImportĀ upstreamĀ versionĀ 2.2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
    int     mask;
20
20
} NAME_MASK;
21
21
 
22
 
extern int name_mask(const char *, NAME_MASK *, const char *);
23
 
extern const char *str_name_mask(const char *, NAME_MASK *, int);
 
22
#define NAME_MASK_MATCH_REQ     (1<<0)
 
23
#define NAME_MASK_ANY_CASE      (1<<1)
 
24
 
 
25
#define NAME_MASK_NONE          0
 
26
#define NAME_MASK_DEFAULT       (NAME_MASK_MATCH_REQ)
 
27
 
 
28
#define name_mask(tag, table, str) \
 
29
        name_mask_opt((tag), (table), (str), NAME_MASK_DEFAULT)
 
30
#define str_name_mask(tag, table, mask) \
 
31
        str_name_mask_opt((tag), (table), (mask), NAME_MASK_DEFAULT)
 
32
 
 
33
extern int name_mask_opt(const char *, NAME_MASK *, const char *, int);
 
34
extern const char *str_name_mask_opt(const char *, NAME_MASK *, int, int);
24
35
 
25
36
/* LICENSE
26
37
/* .ad