1168515Sgshapiro/* 2261194Sgshapiro * 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 * 9266527Sgshapiro * $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 17363466Sgshapiroextern char *arpa_map_lookup __P((MAP *, char *, char **, int *)); 18363466Sgshapiro 19168515Sgshapiroextern char *bestmx_map_lookup __P((MAP *, char *, char **, int *)); 20168515Sgshapiro 21168515Sgshapiroextern char *bogus_map_lookup __P((MAP *, char *, char **, int *)); 22168515Sgshapiro 23363466Sgshapiro#if NEWDB 24168515Sgshapiroextern bool bt_map_open __P((MAP *, int)); 25168515Sgshapiro 26168515Sgshapiroextern char *db_map_lookup __P((MAP *, char *, char **, int *)); 27168515Sgshapiroextern void db_map_store __P((MAP *, char *, char *)); 28168515Sgshapiroextern void db_map_close __P((MAP *)); 29363466Sgshapiro#endif /* NEWDB */ 30168515Sgshapiro 31168515Sgshapiroextern bool dequote_init __P((MAP *, char *)); 32168515Sgshapiroextern char *dequote_map __P((MAP *, char *, char **, int *)); 33168515Sgshapiro 34168515Sgshapiroextern bool dns_map_open __P((MAP *, int)); 35168515Sgshapiroextern bool dns_map_parseargs __P((MAP *, char *)); 36168515Sgshapiroextern char *dns_map_lookup __P((MAP *, char *, char **, int *)); 37168515Sgshapiro 38168515Sgshapiroextern bool dprintf_map_parseargs __P((MAP *, char *)); 39168515Sgshapiroextern char *dprintf_map_lookup __P((MAP *, char *, char **, int *)); 40168515Sgshapiro 41363466Sgshapiro#if NEWDB 42168515Sgshapiroextern bool hash_map_open __P((MAP *, int)); 43363466Sgshapiro#endif 44168515Sgshapiro 45168515Sgshapiroextern bool host_map_init __P((MAP *, char *)); 46168515Sgshapiroextern char *host_map_lookup __P((MAP *, char *, char **, int *)); 47168515Sgshapiro 48168515Sgshapiroextern char *impl_map_lookup __P((MAP *, char *, char **, int *)); 49168515Sgshapiroextern void impl_map_store __P((MAP *, char *, char *)); 50168515Sgshapiroextern bool impl_map_open __P((MAP *, int)); 51168515Sgshapiroextern void impl_map_close __P((MAP *)); 52168515Sgshapiro 53168515Sgshapiroextern char *macro_map_lookup __P((MAP *, char *, char **, int *)); 54168515Sgshapiro 55168515Sgshapiroextern bool map_parseargs __P((MAP *, char *)); 56168515Sgshapiro 57363466Sgshapiro#if NDBM 58363466Sgshapiroextern char *ndbm_map_lookup __P((MAP *, char *, char **, int *)); 59363466Sgshapiroextern void ndbm_map_store __P((MAP *, char *, char *)); 60363466Sgshapiroextern void ndbm_map_close __P((MAP *)); 61363466Sgshapiro#endif /* NDBM */ 62363466Sgshapiro 63168515Sgshapiroextern bool nis_map_open __P((MAP *, int)); 64168515Sgshapiroextern char *nis_map_lookup __P((MAP *, char *, char **, int *)); 65168515Sgshapiro 66168515Sgshapiroextern bool null_map_open __P((MAP *, int)); 67168515Sgshapiroextern void null_map_close __P((MAP *)); 68168515Sgshapiroextern char *null_map_lookup __P((MAP *, char *, char **, int *)); 69168515Sgshapiroextern void null_map_store __P((MAP *, char *, char *)); 70168515Sgshapiro 71168515Sgshapiroextern char *prog_map_lookup __P((MAP *, char *, char **, int *)); 72168515Sgshapiro 73168515Sgshapiroextern bool regex_map_init __P((MAP *, char *)); 74168515Sgshapiroextern char *regex_map_lookup __P((MAP *, char *, char **, int *)); 75168515Sgshapiro 76168515Sgshapiroextern char *seq_map_lookup __P((MAP *, char *, char **, int *)); 77168515Sgshapiroextern void seq_map_store __P((MAP *, char *, char *)); 78168515Sgshapiroextern bool seq_map_parse __P((MAP *, char *)); 79168515Sgshapiro 80363466Sgshapiro#if _FFR_SETDEBUG_MAP 81363466Sgshapiroextern char *setdebug_map_lookup __P((MAP *, char *, char **, int *)); 82363466Sgshapiro#endif 83363466Sgshapiro#if _FFR_SETOPT_MAP 84363466Sgshapiroextern char *setopt_map_lookup __P((MAP *, char *, char **, int *)); 85363466Sgshapiro#endif 86363466Sgshapiro 87363466Sgshapiro#if SOCKETMAP 88363466Sgshapiroextern bool socket_map_open __P((MAP *, int)); 89363466Sgshapiroextern void socket_map_close __P((MAP *)); 90363466Sgshapiroextern char *socket_map_lookup __P((MAP *, char *, char **, int *)); 91363466Sgshapiro#endif 92363466Sgshapiro 93168515Sgshapiroextern char *stab_map_lookup __P((MAP *, char *, char **, int *)); 94168515Sgshapiroextern void stab_map_store __P((MAP *, char *, char *)); 95168515Sgshapiroextern bool stab_map_open __P((MAP *, int)); 96168515Sgshapiro 97168515Sgshapiroextern bool switch_map_open __P((MAP *, int)); 98168515Sgshapiro 99168515Sgshapiroextern bool syslog_map_parseargs __P((MAP *, char *)); 100168515Sgshapiroextern char *syslog_map_lookup __P((MAP *, char *, char **, int *)); 101168515Sgshapiro 102168515Sgshapiroextern bool text_map_open __P((MAP *, int)); 103168515Sgshapiroextern char *text_map_lookup __P((MAP *, char *, char **, int *)); 104168515Sgshapiro 105168515Sgshapiroextern char *udb_map_lookup __P((MAP *, char *, char **, int *)); 106168515Sgshapiro 107168515Sgshapiroextern bool user_map_open __P((MAP *, int)); 108168515Sgshapiroextern char *user_map_lookup __P((MAP *, char *, char **, int *)); 109168515Sgshapiro 110363466Sgshapiro#if CDB 111363466Sgshapiroextern bool cdb_map_open __P((MAP *, int)); 112363466Sgshapiroextern char *cdb_map_lookup __P((MAP *, char *, char **, int *)); 113363466Sgshapiroextern void cdb_map_store __P((MAP *, char *, char *)); 114363466Sgshapiroextern void cdb_map_close __P((MAP *)); 115363466Sgshapiro#endif /* CDB */ 116363466Sgshapiro 117168515Sgshapiro#endif /* ! _MAP_H */ 118