xref: /freebsd/contrib/sendmail/src/map.h (revision 3c4ba5f55438f7afd4f4b0b56f88f2bb505fd6a6)
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 NDBM
58 extern char	*ndbm_map_lookup __P((MAP *, char *, char **, int *));
59 extern void	ndbm_map_store __P((MAP *, char *, char *));
60 extern void	ndbm_map_close __P((MAP *));
61 #endif /* NDBM */
62 
63 extern bool	nis_map_open __P((MAP *, int));
64 extern char	*nis_map_lookup __P((MAP *, char *, char **, int *));
65 
66 extern bool	null_map_open __P((MAP *, int));
67 extern void	null_map_close __P((MAP *));
68 extern char	*null_map_lookup __P((MAP *, char *, char **, int *));
69 extern void	null_map_store __P((MAP *, char *, char *));
70 
71 extern char	*prog_map_lookup __P((MAP *, char *, char **, int *));
72 
73 extern bool	regex_map_init __P((MAP *, char *));
74 extern char	*regex_map_lookup __P((MAP *, char *, char **, int *));
75 
76 extern char	*seq_map_lookup __P((MAP *, char *, char **, int *));
77 extern void	seq_map_store __P((MAP *, char *, char *));
78 extern bool	seq_map_parse __P((MAP *, char *));
79 
80 #if _FFR_SETDEBUG_MAP
81 extern char	*setdebug_map_lookup __P((MAP *, char *, char **, int *));
82 #endif
83 #if _FFR_SETOPT_MAP
84 extern char	*setopt_map_lookup __P((MAP *, char *, char **, int *));
85 #endif
86 
87 #if SOCKETMAP
88 extern bool	socket_map_open __P((MAP *, int));
89 extern void	socket_map_close __P((MAP *));
90 extern char	*socket_map_lookup __P((MAP *, char *, char **, int *));
91 #endif
92 
93 extern char	*stab_map_lookup __P((MAP *, char *, char **, int *));
94 extern void	stab_map_store __P((MAP *, char *, char *));
95 extern bool	stab_map_open __P((MAP *, int));
96 
97 extern bool	switch_map_open __P((MAP *, int));
98 
99 extern bool	syslog_map_parseargs __P((MAP *, char *));
100 extern char	*syslog_map_lookup __P((MAP *, char *, char **, int *));
101 
102 extern bool	text_map_open __P((MAP *, int));
103 extern char	*text_map_lookup __P((MAP *, char *, char **, int *));
104 
105 extern char	*udb_map_lookup __P((MAP *, char *, char **, int *));
106 
107 extern bool	user_map_open __P((MAP *, int));
108 extern char	*user_map_lookup __P((MAP *, char *, char **, int *));
109 
110 #if CDB
111 extern bool	cdb_map_open  __P((MAP *, int));
112 extern char	*cdb_map_lookup __P((MAP *, char *, char **, int *));
113 extern void	cdb_map_store __P((MAP *, char *, char *));
114 extern void	cdb_map_close	__P((MAP *));
115 #endif /* CDB */
116 
117 #endif /* ! _MAP_H */
118