~ubuntu-branches/ubuntu/saucy/postfix/saucy

« back to all changes in this revision

Viewing changes to src/util/name_mask.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2011-02-22 11:20:43 UTC
  • mfrom: (1.1.27 upstream)
  • Revision ID: james.westby@ubuntu.com-20110222112043-c34ht219w3ybrilr
Tags: 2.8.0-2
* a little more lintian cleanup
* Fix missing format strings in smtp-sink.c

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#define NAME_MASK_COMMA         (1<<3)
31
31
#define NAME_MASK_PIPE          (1<<4)
32
32
#define NAME_MASK_NUMBER        (1<<5)
 
33
#define NAME_MASK_WARN          (1<<6)
 
34
#define NAME_MASK_IGNORE        (1<<7)
 
35
 
 
36
#define NAME_MASK_REQUIRED \
 
37
    (NAME_MASK_FATAL | NAME_MASK_RETURN | NAME_MASK_WARN | NAME_MASK_IGNORE)
 
38
#define STR_NAME_MASK_REQUIRED  (NAME_MASK_REQUIRED | NAME_MASK_NUMBER)
33
39
 
34
40
#define NAME_MASK_MATCH_REQ     NAME_MASK_FATAL
35
41
 
48
54
extern int name_mask_delim_opt(const char *, const NAME_MASK *, const char *, const char *, int);
49
55
extern const char *str_name_mask_opt(VSTRING *, const char *, const NAME_MASK *, int, int);
50
56
 
 
57
 /*
 
58
  * "long" API
 
59
  */
 
60
typedef struct {
 
61
    const char *name;
 
62
    long    mask;
 
63
} LONG_NAME_MASK;
 
64
 
 
65
#define long_name_mask_opt(tag, table, str, flags) \
 
66
        long_name_mask_delim_opt((tag), (table), (str), NAME_MASK_DEFAULT_DELIM, (flags))
 
67
#define long_name_mask(tag, table, str) \
 
68
        long_name_mask_opt((tag), (table), (str), NAME_MASK_DEFAULT)
 
69
#define str_long_name_mask(tag, table, mask) \
 
70
        str_long_name_mask_opt(((VSTRING *) 0), (tag), (table), (mask), NAME_MASK_DEFAULT)
 
71
 
 
72
extern long long_name_mask_delim_opt(const char *, const LONG_NAME_MASK *, const char *, const char *, int);
 
73
extern const char *str_long_name_mask_opt(VSTRING *, const char *, const LONG_NAME_MASK *, long, int);
 
74
 
51
75
/* LICENSE
52
76
/* .ad
53
77
/* .fi