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

« back to all changes in this revision

Viewing changes to src/global/mail_conf.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:
40
40
extern void mail_conf_update(const char *, const char *);
41
41
extern const char *mail_conf_lookup(const char *);
42
42
extern const char *mail_conf_eval(const char *);
 
43
extern const char *mail_conf_eval_once(const char *);
43
44
extern const char *mail_conf_lookup_eval(const char *);
44
45
 
45
46
 /*
52
53
extern int get_mail_conf_time(const char *, const char *, int, int);
53
54
extern int get_mail_conf_nint(const char *, const char *, int, int);
54
55
extern char *get_mail_conf_raw(const char *, const char *, int, int);
 
56
extern int get_mail_conf_nbool(const char *, const char *);
55
57
 
56
58
extern char *get_mail_conf_str2(const char *, const char *, const char *, int, int);
57
59
extern int get_mail_conf_int2(const char *, const char *, int, int, int);
69
71
extern int get_mail_conf_time_fn(const char *, const char *(*) (void), int, int, int);
70
72
extern int get_mail_conf_nint_fn(const char *, const char *(*) (void), int, int);
71
73
extern char *get_mail_conf_raw_fn(const char *, const char *(*) (void), int, int);
 
74
extern int get_mail_conf_nbool_fn(const char *, const char *(*) (void));
72
75
 
73
76
 /*
74
77
  * Update dictionary.
81
84
extern void set_mail_conf_time_int(const char *, int);
82
85
extern void set_mail_conf_nint(const char *, const char *);
83
86
extern void set_mail_conf_nint_int(const char *, int);
 
87
extern void set_mail_conf_nbool(const char *, const char *);
 
88
 
 
89
#define set_mail_conf_nbool_int(name, value) \
 
90
    set_mail_conf_nbool((name), (value) ? CONFIG_BOOL_YES : CONFIG_BOOL_NO)
84
91
 
85
92
 /*
86
93
  * Tables that allow us to selectively copy values from the global
140
147
    int     max;                        /* upper bound or zero */
141
148
} CONFIG_NINT_TABLE;
142
149
 
 
150
typedef struct {
 
151
    const char *name;                   /* config variable name */
 
152
    const char *defval;                 /* default value */
 
153
    int    *target;                     /* pointer to global variable */
 
154
} CONFIG_NBOOL_TABLE;
 
155
 
143
156
extern void get_mail_conf_str_table(const CONFIG_STR_TABLE *);
144
157
extern void get_mail_conf_int_table(const CONFIG_INT_TABLE *);
145
158
extern void get_mail_conf_long_table(const CONFIG_LONG_TABLE *);
147
160
extern void get_mail_conf_time_table(const CONFIG_TIME_TABLE *);
148
161
extern void get_mail_conf_nint_table(const CONFIG_NINT_TABLE *);
149
162
extern void get_mail_conf_raw_table(const CONFIG_RAW_TABLE *);
 
163
extern void get_mail_conf_nbool_table(const CONFIG_NBOOL_TABLE *);
150
164
 
151
165
 /*
152
166
  * Tables to initialize parameters from the global configuration file or
198
212
    int     max;                        /* upper bound or zero */
199
213
} CONFIG_NINT_FN_TABLE;
200
214
 
 
215
typedef struct {
 
216
    const char *name;                   /* config variable name */
 
217
    const char *(*defval) (void);       /* default value provider */
 
218
    int    *target;                     /* pointer to global variable */
 
219
} CONFIG_NBOOL_FN_TABLE;
 
220
 
201
221
extern void get_mail_conf_str_fn_table(const CONFIG_STR_FN_TABLE *);
202
222
extern void get_mail_conf_int_fn_table(const CONFIG_INT_FN_TABLE *);
203
223
extern void get_mail_conf_long_fn_table(const CONFIG_LONG_FN_TABLE *);
204
224
extern void get_mail_conf_bool_fn_table(const CONFIG_BOOL_FN_TABLE *);
205
225
extern void get_mail_conf_raw_fn_table(const CONFIG_RAW_FN_TABLE *);
206
226
extern void get_mail_conf_nint_fn_table(const CONFIG_NINT_FN_TABLE *);
 
227
extern void get_mail_conf_nbool_fn_table(const CONFIG_NBOOL_FN_TABLE *);
207
228
 
208
229
/* LICENSE
209
230
/* .ad