xref: /freebsd/contrib/sendmail/src/map.h (revision 6ae1554a5d9b318f8ad53ccc39fa5a961403da73)
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	*bestmx_map_lookup __P((MAP *, char *, char **, int *));
18 
19 extern char	*bogus_map_lookup __P((MAP *, char *, char **, int *));
20 
21 extern bool	bt_map_open __P((MAP *, int));
22 
23 extern char	*db_map_lookup __P((MAP *, char *, char **, int *));
24 
25 extern void	db_map_store __P((MAP *, char *, char *));
26 extern void	db_map_close __P((MAP *));
27 
28 extern bool	dequote_init __P((MAP *, char *));
29 extern char	*dequote_map __P((MAP *, char *, char **, int *));
30 
31 extern bool	dns_map_open __P((MAP *, int));
32 extern bool	dns_map_parseargs __P((MAP *, char *));
33 extern char	*dns_map_lookup __P((MAP *, char *, char **, int *));
34 
35 extern bool	dprintf_map_parseargs __P((MAP *, char *));
36 extern char	*dprintf_map_lookup __P((MAP *, char *, char **, int *));
37 
38 extern bool	hash_map_open __P((MAP *, int));
39 
40 extern bool	host_map_init __P((MAP *, char *));
41 extern char	*host_map_lookup __P((MAP *, char *, char **, int *));
42 
43 extern char	*impl_map_lookup __P((MAP *, char *, char **, int *));
44 extern void	impl_map_store __P((MAP *, char *, char *));
45 extern bool	impl_map_open __P((MAP *, int));
46 extern void	impl_map_close __P((MAP *));
47 
48 extern char	*macro_map_lookup __P((MAP *, char *, char **, int *));
49 
50 extern bool	map_parseargs __P((MAP *, char *));
51 
52 extern bool	nis_map_open __P((MAP *, int));
53 extern char	*nis_map_lookup __P((MAP *, char *, char **, int *));
54 
55 extern bool	null_map_open __P((MAP *, int));
56 extern void	null_map_close __P((MAP *));
57 extern char	*null_map_lookup __P((MAP *, char *, char **, int *));
58 extern void	null_map_store __P((MAP *, char *, char *));
59 
60 extern char	*prog_map_lookup __P((MAP *, char *, char **, int *));
61 
62 extern bool	regex_map_init __P((MAP *, char *));
63 extern char	*regex_map_lookup __P((MAP *, char *, char **, int *));
64 
65 extern char	*seq_map_lookup __P((MAP *, char *, char **, int *));
66 extern void	seq_map_store __P((MAP *, char *, char *));
67 extern bool	seq_map_parse __P((MAP *, char *));
68 
69 extern char	*stab_map_lookup __P((MAP *, char *, char **, int *));
70 extern void	stab_map_store __P((MAP *, char *, char *));
71 extern bool	stab_map_open __P((MAP *, int));
72 
73 extern bool	switch_map_open __P((MAP *, int));
74 
75 extern bool	syslog_map_parseargs __P((MAP *, char *));
76 extern char	*syslog_map_lookup __P((MAP *, char *, char **, int *));
77 
78 extern bool	text_map_open __P((MAP *, int));
79 extern char	*text_map_lookup __P((MAP *, char *, char **, int *));
80 
81 extern char	*udb_map_lookup __P((MAP *, char *, char **, int *));
82 
83 extern bool	user_map_open __P((MAP *, int));
84 extern char	*user_map_lookup __P((MAP *, char *, char **, int *));
85 
86 #endif /* ! _MAP_H */
87