Postfix3.3.1
name_code.h
[詳解]
1 #ifndef _NAME_CODE_H_INCLUDED_
2 #define _NAME_CODE_H_INCLUDED_
3 
4 /*++
5 /* NAME
6 /* name_mask 3h
7 /* SUMMARY
8 /* name to number table mapping
9 /* SYNOPSIS
10 /* #include <name_code.h>
11 /* DESCRIPTION
12 /* .nf
13 
14  /*
15  * External interface.
16  */
17 typedef struct {
18  const char *name;
19  int code;
20 } NAME_CODE;
21 
22 #define NAME_CODE_FLAG_NONE 0
23 #define NAME_CODE_FLAG_STRICT_CASE (1<<0)
24 
25 extern int name_code(const NAME_CODE *, int, const char *);
26 extern const char *str_name_code(const NAME_CODE *, int);
27 
28 /* LICENSE
29 /* .ad
30 /* .fi
31 /* The Secure Mailer license must be distributed with this software.
32 /* AUTHOR(S)
33 /* Wietse Venema
34 /* IBM T.J. Watson Research
35 /* P.O. Box 704
36 /* Yorktown Heights, NY 10598, USA
37 /*--*/
38 
39 #endif
int code
Definition: name_code.h:19
const char * str_name_code(const NAME_CODE *, int)
Definition: name_code.c:83
const char * name
Definition: name_code.h:18
int name_code(const NAME_CODE *, int, const char *)
Definition: name_code.c:65