xref: /freebsd/contrib/sendmail/src/map.h (revision 62a52c15422470f97fc7b311d89c83f910bcc1b1)
1 /*
2  * Copyright (c) 2006 Proofpoint, Inc. and its suppliers.
3  *	All rights reserved.
4  *
5  * By using this file, you agree to the terms and conditions set
6  * forth in the LICENSE file which can be found at the top level of
7  * the sendmail distribution.
8  *
9  *	$Id: map.h,v 8.4 2013-11-22 20:51:56 ca Exp $
10  */
11 
12 #ifndef _MAP_H
13 # define _MAP_H 1
14 
15 extern char	*arith_map_lookup __P((MAP *, char *, char **, int *));
16 
17 extern char	*arpa_map_lookup __P((MAP *, char *, char **, int *));
18 
19 extern char	*bestmx_map_lookup __P((MAP *, char *, char **, int *));
20 
21 extern char	*bogus_map_lookup __P((MAP *, char *, char **, int *));
22 
23 #if NEWDB
24 extern bool	bt_map_open __P((MAP *, int));
25 
26 extern char	*db_map_lookup __P((MAP *, char *, char **, int *));
27 extern void	db_map_store __P((MAP *, char *, char *));
28 extern void	db_map_close __P((MAP *));
29 #endif /* NEWDB */
30 
31 extern bool	dequote_init __P((MAP *, char *));
32 extern char	*dequote_map __P((MAP *, char *, char **, int *));
33 
34 extern bool	dns_map_open __P((MAP *, int));
35 extern bool	dns_map_parseargs __P((MAP *, char *));
36 extern char	*dns_map_lookup __P((MAP *, char *, char **, int *));
37 
38 extern bool	dprintf_map_parseargs __P((MAP *, char *));
39 extern char	*dprintf_map_lookup __P((MAP *, char *, char **, int *));
40 
41 #if NEWDB
42 extern bool	hash_map_open __P((MAP *, int));
43 #endif
44 
45 extern bool	host_map_init __P((MAP *, char *));
46 extern char	*host_map_lookup __P((MAP *, char *, char **, int *));
47 
48 extern char	*impl_map_lookup __P((MAP *, char *, char **, int *));
49 extern void	impl_map_store __P((MAP *, char *, char *));
50 extern bool	impl_map_open __P((MAP *, int));
51 extern void	impl_map_close __P((MAP *));
52 
53 extern char	*macro_map_lookup __P((MAP *, char *, char **, int *));
54 
55 extern bool	map_parseargs __P((MAP *, char *));
56 
57 #if LDAPMAP
58 extern bool	ldapmap_parseargs __P((MAP *, char *));
59 #endif
60 
61 #if NDBM
62 extern char	*ndbm_map_lookup __P((MAP *, char *, char **, int *));
63 extern void	ndbm_map_store __P((MAP *, char *, char *));
64 extern void	ndbm_map_close __P((MAP *));
65 #endif /* NDBM */
66 
67 extern bool	nis_map_open __P((MAP *, int));
68 extern char	*nis_map_lookup __P((MAP *, char *, char **, int *));
69 
70 extern bool	null_map_open __P((MAP *, int));
71 extern void	null_map_close __P((MAP *));
72 extern char	*null_map_lookup __P((MAP *, char *, char **, int *));
73 extern void	null_map_store __P((MAP *, char *, char *));
74 
75 #if PH_MAP
76 extern bool	ph_map_parseargs __P((MAP *, char *));
77 #endif
78 
79 extern char	*prog_map_lookup __P((MAP *, char *, char **, int *));
80 
81 extern bool	regex_map_init __P((MAP *, char *));
82 extern char	*regex_map_lookup __P((MAP *, char *, char **, int *));
83 
84 extern char	*seq_map_lookup __P((MAP *, char *, char **, int *));
85 extern void	seq_map_store __P((MAP *, char *, char *));
86 extern bool	seq_map_parse __P((MAP *, char *));
87 
88 #if _FFR_SETDEBUG_MAP
89 extern char	*setdebug_map_lookup __P((MAP *, char *, char **, int *));
90 #endif
91 #if _FFR_SETOPT_MAP
92 extern char	*setopt_map_lookup __P((MAP *, char *, char **, int *));
93 #endif
94 
95 #if SOCKETMAP
96 extern bool	socket_map_open __P((MAP *, int));
97 extern void	socket_map_close __P((MAP *));
98 extern char	*socket_map_lookup __P((MAP *, char *, char **, int *));
99 #endif
100 
101 extern char	*stab_map_lookup __P((MAP *, char *, char **, int *));
102 extern void	stab_map_store __P((MAP *, char *, char *));
103 extern bool	stab_map_open __P((MAP *, int));
104 
105 extern bool	switch_map_open __P((MAP *, int));
106 
107 extern bool	syslog_map_parseargs __P((MAP *, char *));
108 extern char	*syslog_map_lookup __P((MAP *, char *, char **, int *));
109 
110 extern bool	text_map_open __P((MAP *, int));
111 extern char	*text_map_lookup __P((MAP *, char *, char **, int *));
112 
113 extern char	*udb_map_lookup __P((MAP *, char *, char **, int *));
114 
115 extern bool	user_map_open __P((MAP *, int));
116 extern char	*user_map_lookup __P((MAP *, char *, char **, int *));
117 
118 #if CDB
119 extern bool	cdb_map_open  __P((MAP *, int));
120 extern char	*cdb_map_lookup __P((MAP *, char *, char **, int *));
121 extern void	cdb_map_store __P((MAP *, char *, char *));
122 extern void	cdb_map_close	__P((MAP *));
123 #endif /* CDB */
124 
125 #endif /* ! _MAP_H */
126