1168515Sgshapiro/*
2261370Sgshapiro * Copyright (c) 2006 Proofpoint, Inc. and its suppliers.
3168515Sgshapiro *	All rights reserved.
4168515Sgshapiro *
5168515Sgshapiro * By using this file, you agree to the terms and conditions set
6168515Sgshapiro * forth in the LICENSE file which can be found at the top level of
7168515Sgshapiro * the sendmail distribution.
8168515Sgshapiro *
9266711Sgshapiro *	$Id: map.h,v 8.4 2013-11-22 20:51:56 ca Exp $
10168515Sgshapiro */
11168515Sgshapiro
12168515Sgshapiro#ifndef _MAP_H
13168515Sgshapiro# define _MAP_H 1
14168515Sgshapiro
15168515Sgshapiroextern char	*arith_map_lookup __P((MAP *, char *, char **, int *));
16168515Sgshapiro
17168515Sgshapiroextern char	*bestmx_map_lookup __P((MAP *, char *, char **, int *));
18168515Sgshapiro
19168515Sgshapiroextern char	*bogus_map_lookup __P((MAP *, char *, char **, int *));
20168515Sgshapiro
21168515Sgshapiroextern bool	bt_map_open __P((MAP *, int));
22168515Sgshapiro
23168515Sgshapiroextern char	*db_map_lookup __P((MAP *, char *, char **, int *));
24168515Sgshapiro
25168515Sgshapiroextern void	db_map_store __P((MAP *, char *, char *));
26168515Sgshapiroextern void	db_map_close __P((MAP *));
27168515Sgshapiro
28168515Sgshapiroextern bool	dequote_init __P((MAP *, char *));
29168515Sgshapiroextern char	*dequote_map __P((MAP *, char *, char **, int *));
30168515Sgshapiro
31168515Sgshapiroextern bool	dns_map_open __P((MAP *, int));
32168515Sgshapiroextern bool	dns_map_parseargs __P((MAP *, char *));
33168515Sgshapiroextern char	*dns_map_lookup __P((MAP *, char *, char **, int *));
34168515Sgshapiro
35168515Sgshapiroextern bool	dprintf_map_parseargs __P((MAP *, char *));
36168515Sgshapiroextern char	*dprintf_map_lookup __P((MAP *, char *, char **, int *));
37168515Sgshapiro
38168515Sgshapiroextern bool	hash_map_open __P((MAP *, int));
39168515Sgshapiro
40168515Sgshapiroextern bool	host_map_init __P((MAP *, char *));
41168515Sgshapiroextern char	*host_map_lookup __P((MAP *, char *, char **, int *));
42168515Sgshapiro
43168515Sgshapiroextern char	*impl_map_lookup __P((MAP *, char *, char **, int *));
44168515Sgshapiroextern void	impl_map_store __P((MAP *, char *, char *));
45168515Sgshapiroextern bool	impl_map_open __P((MAP *, int));
46168515Sgshapiroextern void	impl_map_close __P((MAP *));
47168515Sgshapiro
48168515Sgshapiroextern char	*macro_map_lookup __P((MAP *, char *, char **, int *));
49168515Sgshapiro
50168515Sgshapiroextern bool	map_parseargs __P((MAP *, char *));
51168515Sgshapiro
52168515Sgshapiroextern bool	nis_map_open __P((MAP *, int));
53168515Sgshapiroextern char	*nis_map_lookup __P((MAP *, char *, char **, int *));
54168515Sgshapiro
55168515Sgshapiroextern bool	null_map_open __P((MAP *, int));
56168515Sgshapiroextern void	null_map_close __P((MAP *));
57168515Sgshapiroextern char	*null_map_lookup __P((MAP *, char *, char **, int *));
58168515Sgshapiroextern void	null_map_store __P((MAP *, char *, char *));
59168515Sgshapiro
60168515Sgshapiroextern char	*prog_map_lookup __P((MAP *, char *, char **, int *));
61168515Sgshapiro
62168515Sgshapiroextern bool	regex_map_init __P((MAP *, char *));
63168515Sgshapiroextern char	*regex_map_lookup __P((MAP *, char *, char **, int *));
64168515Sgshapiro
65168515Sgshapiroextern char	*seq_map_lookup __P((MAP *, char *, char **, int *));
66168515Sgshapiroextern void	seq_map_store __P((MAP *, char *, char *));
67168515Sgshapiroextern bool	seq_map_parse __P((MAP *, char *));
68168515Sgshapiro
69168515Sgshapiroextern char	*stab_map_lookup __P((MAP *, char *, char **, int *));
70168515Sgshapiroextern void	stab_map_store __P((MAP *, char *, char *));
71168515Sgshapiroextern bool	stab_map_open __P((MAP *, int));
72168515Sgshapiro
73168515Sgshapiroextern bool	switch_map_open __P((MAP *, int));
74168515Sgshapiro
75168515Sgshapiroextern bool	syslog_map_parseargs __P((MAP *, char *));
76168515Sgshapiroextern char	*syslog_map_lookup __P((MAP *, char *, char **, int *));
77168515Sgshapiro
78168515Sgshapiroextern bool	text_map_open __P((MAP *, int));
79168515Sgshapiroextern char	*text_map_lookup __P((MAP *, char *, char **, int *));
80168515Sgshapiro
81168515Sgshapiroextern char	*udb_map_lookup __P((MAP *, char *, char **, int *));
82168515Sgshapiro
83168515Sgshapiroextern bool	user_map_open __P((MAP *, int));
84168515Sgshapiroextern char	*user_map_lookup __P((MAP *, char *, char **, int *));
85168515Sgshapiro
86168515Sgshapiro#endif /* ! _MAP_H */
87