Postfix3.3.1
総合概要
データ構造
ファイル
ファイル一覧
大域各種
postfix-3.3.1
src
global
attr_override.h
[詳解]
1
#ifndef _ATTR_OVERRIDE_H_INCLUDED_
2
#define _ATTR_OVERRIDE_H_INCLUDED_
3
4
/*++
5
/* NAME
6
/* attr_override 3h
7
/* SUMMARY
8
/* apply name=value settings from string
9
/* SYNOPSIS
10
/* #include <attr_override.h>
11
/* DESCRIPTION
12
/* .nf
13
14
/*
15
* External interface.
16
*/
17
#include <
check_arg.h
>
18
19
extern
void
attr_override
(
char
*,
const
char
*,
const
char
*,...);
20
21
typedef
struct
{
22
const
char
*
name
;
23
CONST_CHAR_STAR
*
target
;
24
int
min
;
25
int
max
;
26
}
ATTR_OVER_STR
;
27
28
typedef
struct
{
29
const
char
*
name
;
30
const
char
*
defval
;
31
int
*
target
;
32
int
min
;
33
int
max
;
34
}
ATTR_OVER_TIME
;
35
36
typedef
struct
{
37
const
char
*
name
;
38
int
*
target
;
39
int
min
;
40
int
max
;
41
}
ATTR_OVER_INT
;
42
43
/* Type-unchecked API, internal use only. */
44
#define ATTR_OVER_END 0
45
#define ATTR_OVER_STR_TABLE 1
46
#define ATTR_OVER_TIME_TABLE 2
47
#define ATTR_OVER_INT_TABLE 3
48
49
/* Type-checked API, external use only. */
50
#define CA_ATTR_OVER_END 0
51
#define CA_ATTR_OVER_STR_TABLE(v) ATTR_OVER_STR_TABLE, CHECK_CPTR(ATTR_OVER, ATTR_OVER_STR, (v))
52
#define CA_ATTR_OVER_TIME_TABLE(v) ATTR_OVER_TIME_TABLE, CHECK_CPTR(ATTR_OVER, ATTR_OVER_TIME, (v))
53
#define CA_ATTR_OVER_INT_TABLE(v) ATTR_OVER_INT_TABLE, CHECK_CPTR(ATTR_OVER, ATTR_OVER_INT, (v))
54
55
CHECK_CPTR_HELPER_DCL
(ATTR_OVER,
ATTR_OVER_TIME
);
56
CHECK_CPTR_HELPER_DCL
(ATTR_OVER,
ATTR_OVER_STR
);
57
CHECK_CPTR_HELPER_DCL
(ATTR_OVER,
ATTR_OVER_INT
);
58
59
/* LICENSE
60
/* .ad
61
/* .fi
62
/* The Secure Mailer license must be distributed with this software.
63
/* AUTHOR(S)
64
/* Wietse Venema
65
/* IBM T.J. Watson Research
66
/* P.O. Box 704
67
/* Yorktown Heights, NY 10598, USA
68
/*--*/
69
70
#endif
ATTR_OVER_STR
Definition:
attr_override.h:21
CHECK_CPTR_HELPER_DCL
CHECK_CPTR_HELPER_DCL(ATTR_OVER, ATTR_OVER_TIME)
ATTR_OVER_TIME::name
const char * name
Definition:
attr_override.h:29
ATTR_OVER_STR::min
int min
Definition:
attr_override.h:24
ATTR_OVER_INT::name
const char * name
Definition:
attr_override.h:37
ATTR_OVER_TIME
Definition:
attr_override.h:28
ATTR_OVER_STR::name
const char * name
Definition:
attr_override.h:22
ATTR_OVER_STR::max
int max
Definition:
attr_override.h:25
ATTR_OVER_TIME::min
int min
Definition:
attr_override.h:32
ATTR_OVER_TIME::max
int max
Definition:
attr_override.h:33
ATTR_OVER_INT::max
int max
Definition:
attr_override.h:40
check_arg.h
ATTR_OVER_INT
Definition:
attr_override.h:36
ATTR_OVER_TIME::defval
const char * defval
Definition:
attr_override.h:30
ATTR_OVER_INT::target
int * target
Definition:
attr_override.h:38
ATTR_OVER_INT::min
int min
Definition:
attr_override.h:39
CONST_CHAR_STAR
const char * CONST_CHAR_STAR
Definition:
sys_defs.h:1730
ATTR_OVER_TIME::target
int * target
Definition:
attr_override.h:31
attr_override
void attr_override(char *, const char *, const char *,...)
Definition:
attr_override.c:91
ATTR_OVER_STR::target
CONST_CHAR_STAR * target
Definition:
attr_override.h:23
2018年11月10日(土) 18時59分35秒作成 - Postfix3.3.1 / 構成:
1.8.9.1