1d0cef73dSGregory Neil Shapiro /* 25dd76dd0SGregory Neil Shapiro * Copyright (c) 2006 Proofpoint, Inc. and its suppliers. 3d0cef73dSGregory Neil Shapiro * All rights reserved. 4d0cef73dSGregory Neil Shapiro * 5d0cef73dSGregory Neil Shapiro * By using this file, you agree to the terms and conditions set 6d0cef73dSGregory Neil Shapiro * forth in the LICENSE file which can be found at the top level of 7d0cef73dSGregory Neil Shapiro * the sendmail distribution. 8d0cef73dSGregory Neil Shapiro * 94313cc83SGregory Neil Shapiro * $Id: map.h,v 8.4 2013-11-22 20:51:56 ca Exp $ 10d0cef73dSGregory Neil Shapiro */ 11d0cef73dSGregory Neil Shapiro 12d0cef73dSGregory Neil Shapiro #ifndef _MAP_H 13d0cef73dSGregory Neil Shapiro # define _MAP_H 1 14d0cef73dSGregory Neil Shapiro 15d0cef73dSGregory Neil Shapiro extern char *arith_map_lookup __P((MAP *, char *, char **, int *)); 16d0cef73dSGregory Neil Shapiro 175b0945b5SGregory Neil Shapiro extern char *arpa_map_lookup __P((MAP *, char *, char **, int *)); 185b0945b5SGregory Neil Shapiro 19d0cef73dSGregory Neil Shapiro extern char *bestmx_map_lookup __P((MAP *, char *, char **, int *)); 20d0cef73dSGregory Neil Shapiro 21d0cef73dSGregory Neil Shapiro extern char *bogus_map_lookup __P((MAP *, char *, char **, int *)); 22d0cef73dSGregory Neil Shapiro 235b0945b5SGregory Neil Shapiro #if NEWDB 24d0cef73dSGregory Neil Shapiro extern bool bt_map_open __P((MAP *, int)); 25d0cef73dSGregory Neil Shapiro 26d0cef73dSGregory Neil Shapiro extern char *db_map_lookup __P((MAP *, char *, char **, int *)); 27d0cef73dSGregory Neil Shapiro extern void db_map_store __P((MAP *, char *, char *)); 28d0cef73dSGregory Neil Shapiro extern void db_map_close __P((MAP *)); 295b0945b5SGregory Neil Shapiro #endif /* NEWDB */ 30d0cef73dSGregory Neil Shapiro 31d0cef73dSGregory Neil Shapiro extern bool dequote_init __P((MAP *, char *)); 32d0cef73dSGregory Neil Shapiro extern char *dequote_map __P((MAP *, char *, char **, int *)); 33d0cef73dSGregory Neil Shapiro 34d0cef73dSGregory Neil Shapiro extern bool dns_map_open __P((MAP *, int)); 35d0cef73dSGregory Neil Shapiro extern bool dns_map_parseargs __P((MAP *, char *)); 36d0cef73dSGregory Neil Shapiro extern char *dns_map_lookup __P((MAP *, char *, char **, int *)); 37d0cef73dSGregory Neil Shapiro 38d0cef73dSGregory Neil Shapiro extern bool dprintf_map_parseargs __P((MAP *, char *)); 39d0cef73dSGregory Neil Shapiro extern char *dprintf_map_lookup __P((MAP *, char *, char **, int *)); 40d0cef73dSGregory Neil Shapiro 415b0945b5SGregory Neil Shapiro #if NEWDB 42d0cef73dSGregory Neil Shapiro extern bool hash_map_open __P((MAP *, int)); 435b0945b5SGregory Neil Shapiro #endif 44d0cef73dSGregory Neil Shapiro 45d0cef73dSGregory Neil Shapiro extern bool host_map_init __P((MAP *, char *)); 46d0cef73dSGregory Neil Shapiro extern char *host_map_lookup __P((MAP *, char *, char **, int *)); 47d0cef73dSGregory Neil Shapiro 48d0cef73dSGregory Neil Shapiro extern char *impl_map_lookup __P((MAP *, char *, char **, int *)); 49d0cef73dSGregory Neil Shapiro extern void impl_map_store __P((MAP *, char *, char *)); 50d0cef73dSGregory Neil Shapiro extern bool impl_map_open __P((MAP *, int)); 51d0cef73dSGregory Neil Shapiro extern void impl_map_close __P((MAP *)); 52d0cef73dSGregory Neil Shapiro 53d0cef73dSGregory Neil Shapiro extern char *macro_map_lookup __P((MAP *, char *, char **, int *)); 54d0cef73dSGregory Neil Shapiro 55d0cef73dSGregory Neil Shapiro extern bool map_parseargs __P((MAP *, char *)); 56d0cef73dSGregory Neil Shapiro 57*d39bd2c1SGregory Neil Shapiro #if LDAPMAP 58*d39bd2c1SGregory Neil Shapiro extern bool ldapmap_parseargs __P((MAP *, char *)); 59*d39bd2c1SGregory Neil Shapiro #endif 60*d39bd2c1SGregory Neil Shapiro 615b0945b5SGregory Neil Shapiro #if NDBM 625b0945b5SGregory Neil Shapiro extern char *ndbm_map_lookup __P((MAP *, char *, char **, int *)); 635b0945b5SGregory Neil Shapiro extern void ndbm_map_store __P((MAP *, char *, char *)); 645b0945b5SGregory Neil Shapiro extern void ndbm_map_close __P((MAP *)); 655b0945b5SGregory Neil Shapiro #endif /* NDBM */ 665b0945b5SGregory Neil Shapiro 67d0cef73dSGregory Neil Shapiro extern bool nis_map_open __P((MAP *, int)); 68d0cef73dSGregory Neil Shapiro extern char *nis_map_lookup __P((MAP *, char *, char **, int *)); 69d0cef73dSGregory Neil Shapiro 70d0cef73dSGregory Neil Shapiro extern bool null_map_open __P((MAP *, int)); 71d0cef73dSGregory Neil Shapiro extern void null_map_close __P((MAP *)); 72d0cef73dSGregory Neil Shapiro extern char *null_map_lookup __P((MAP *, char *, char **, int *)); 73d0cef73dSGregory Neil Shapiro extern void null_map_store __P((MAP *, char *, char *)); 74d0cef73dSGregory Neil Shapiro 75*d39bd2c1SGregory Neil Shapiro #if PH_MAP 76*d39bd2c1SGregory Neil Shapiro extern bool ph_map_parseargs __P((MAP *, char *)); 77*d39bd2c1SGregory Neil Shapiro #endif 78*d39bd2c1SGregory Neil Shapiro 79d0cef73dSGregory Neil Shapiro extern char *prog_map_lookup __P((MAP *, char *, char **, int *)); 80d0cef73dSGregory Neil Shapiro 81d0cef73dSGregory Neil Shapiro extern bool regex_map_init __P((MAP *, char *)); 82d0cef73dSGregory Neil Shapiro extern char *regex_map_lookup __P((MAP *, char *, char **, int *)); 83d0cef73dSGregory Neil Shapiro 84d0cef73dSGregory Neil Shapiro extern char *seq_map_lookup __P((MAP *, char *, char **, int *)); 85d0cef73dSGregory Neil Shapiro extern void seq_map_store __P((MAP *, char *, char *)); 86d0cef73dSGregory Neil Shapiro extern bool seq_map_parse __P((MAP *, char *)); 87d0cef73dSGregory Neil Shapiro 885b0945b5SGregory Neil Shapiro #if _FFR_SETDEBUG_MAP 895b0945b5SGregory Neil Shapiro extern char *setdebug_map_lookup __P((MAP *, char *, char **, int *)); 905b0945b5SGregory Neil Shapiro #endif 915b0945b5SGregory Neil Shapiro #if _FFR_SETOPT_MAP 925b0945b5SGregory Neil Shapiro extern char *setopt_map_lookup __P((MAP *, char *, char **, int *)); 935b0945b5SGregory Neil Shapiro #endif 945b0945b5SGregory Neil Shapiro 955b0945b5SGregory Neil Shapiro #if SOCKETMAP 965b0945b5SGregory Neil Shapiro extern bool socket_map_open __P((MAP *, int)); 975b0945b5SGregory Neil Shapiro extern void socket_map_close __P((MAP *)); 985b0945b5SGregory Neil Shapiro extern char *socket_map_lookup __P((MAP *, char *, char **, int *)); 995b0945b5SGregory Neil Shapiro #endif 1005b0945b5SGregory Neil Shapiro 101d0cef73dSGregory Neil Shapiro extern char *stab_map_lookup __P((MAP *, char *, char **, int *)); 102d0cef73dSGregory Neil Shapiro extern void stab_map_store __P((MAP *, char *, char *)); 103d0cef73dSGregory Neil Shapiro extern bool stab_map_open __P((MAP *, int)); 104d0cef73dSGregory Neil Shapiro 105d0cef73dSGregory Neil Shapiro extern bool switch_map_open __P((MAP *, int)); 106d0cef73dSGregory Neil Shapiro 107d0cef73dSGregory Neil Shapiro extern bool syslog_map_parseargs __P((MAP *, char *)); 108d0cef73dSGregory Neil Shapiro extern char *syslog_map_lookup __P((MAP *, char *, char **, int *)); 109d0cef73dSGregory Neil Shapiro 110d0cef73dSGregory Neil Shapiro extern bool text_map_open __P((MAP *, int)); 111d0cef73dSGregory Neil Shapiro extern char *text_map_lookup __P((MAP *, char *, char **, int *)); 112d0cef73dSGregory Neil Shapiro 113d0cef73dSGregory Neil Shapiro extern char *udb_map_lookup __P((MAP *, char *, char **, int *)); 114d0cef73dSGregory Neil Shapiro 115d0cef73dSGregory Neil Shapiro extern bool user_map_open __P((MAP *, int)); 116d0cef73dSGregory Neil Shapiro extern char *user_map_lookup __P((MAP *, char *, char **, int *)); 117d0cef73dSGregory Neil Shapiro 1185b0945b5SGregory Neil Shapiro #if CDB 1195b0945b5SGregory Neil Shapiro extern bool cdb_map_open __P((MAP *, int)); 1205b0945b5SGregory Neil Shapiro extern char *cdb_map_lookup __P((MAP *, char *, char **, int *)); 1215b0945b5SGregory Neil Shapiro extern void cdb_map_store __P((MAP *, char *, char *)); 1225b0945b5SGregory Neil Shapiro extern void cdb_map_close __P((MAP *)); 1235b0945b5SGregory Neil Shapiro #endif /* CDB */ 1245b0945b5SGregory Neil Shapiro 125d0cef73dSGregory Neil Shapiro #endif /* ! _MAP_H */ 126