xref: /titanic_41/usr/src/cmd/sendmail/src/map.h (revision 8d483882aa3390058094b043f3d62187b5d1de03)
1 /*
2  * Copyright (c) 2006 Sendmail, 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.3 2006/12/19 19:49:51 ca Exp $
10  */
11 
12 #pragma ident	"%Z%%M%	%I%	%E% SMI"
13 
14 #ifndef _MAP_H
15 # define _MAP_H 1
16 
17 extern char	*arith_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 extern bool	bt_map_open __P((MAP *, int));
24 
25 extern char	*db_map_lookup __P((MAP *, char *, char **, int *));
26 
27 extern void	db_map_store __P((MAP *, char *, char *));
28 extern void	db_map_close __P((MAP *));
29 
30 extern bool	dequote_init __P((MAP *, char *));
31 extern char	*dequote_map __P((MAP *, char *, char **, int *));
32 
33 extern bool	dns_map_open __P((MAP *, int));
34 extern bool	dns_map_parseargs __P((MAP *, char *));
35 extern char	*dns_map_lookup __P((MAP *, char *, char **, int *));
36 
37 extern bool	dprintf_map_parseargs __P((MAP *, char *));
38 extern char	*dprintf_map_lookup __P((MAP *, char *, char **, int *));
39 
40 extern bool	hash_map_open __P((MAP *, int));
41 
42 extern bool	host_map_init __P((MAP *, char *));
43 extern char	*host_map_lookup __P((MAP *, char *, char **, int *));
44 
45 extern char	*impl_map_lookup __P((MAP *, char *, char **, int *));
46 extern void	impl_map_store __P((MAP *, char *, char *));
47 extern bool	impl_map_open __P((MAP *, int));
48 extern void	impl_map_close __P((MAP *));
49 
50 extern char	*macro_map_lookup __P((MAP *, char *, char **, int *));
51 
52 extern bool	map_parseargs __P((MAP *, char *));
53 
54 extern bool	nis_map_open __P((MAP *, int));
55 extern char	*nis_map_lookup __P((MAP *, char *, char **, int *));
56 
57 extern bool	null_map_open __P((MAP *, int));
58 extern void	null_map_close __P((MAP *));
59 extern char	*null_map_lookup __P((MAP *, char *, char **, int *));
60 extern void	null_map_store __P((MAP *, char *, char *));
61 
62 extern char	*prog_map_lookup __P((MAP *, char *, char **, int *));
63 
64 extern bool	regex_map_init __P((MAP *, char *));
65 extern char	*regex_map_lookup __P((MAP *, char *, char **, int *));
66 
67 extern char	*seq_map_lookup __P((MAP *, char *, char **, int *));
68 extern void	seq_map_store __P((MAP *, char *, char *));
69 extern bool	seq_map_parse __P((MAP *, char *));
70 
71 extern char	*stab_map_lookup __P((MAP *, char *, char **, int *));
72 extern void	stab_map_store __P((MAP *, char *, char *));
73 extern bool	stab_map_open __P((MAP *, int));
74 
75 extern bool	switch_map_open __P((MAP *, int));
76 
77 extern bool	syslog_map_parseargs __P((MAP *, char *));
78 extern char	*syslog_map_lookup __P((MAP *, char *, char **, int *));
79 
80 extern bool	text_map_open __P((MAP *, int));
81 extern char	*text_map_lookup __P((MAP *, char *, char **, int *));
82 
83 extern char	*udb_map_lookup __P((MAP *, char *, char **, int *));
84 
85 extern bool	user_map_open __P((MAP *, int));
86 extern char	*user_map_lookup __P((MAP *, char *, char **, int *));
87 
88 #endif /* ! _MAP_H */
89