xref: /netbsd-src/external/ibm-public/postfix/dist/src/global/maps.h (revision 33881f779a77dce6440bdc44610d94de75bebefe)
1 /*	$NetBSD: maps.h,v 1.2 2020/03/18 19:05:16 christos Exp $	*/
2 
3 #ifndef _MAPS_H_INCLUDED_
4 #define _MAPS_H_INCLUDED_
5 
6 /*++
7 /* NAME
8 /*	maps 3h
9 /* SUMMARY
10 /*	multi-dictionary search
11 /* SYNOPSIS
12 /*	#include <maps.h>
13 /* DESCRIPTION
14 /* .nf
15 
16  /*
17   * Utility library.
18   */
19 #include <dict.h>
20 
21  /*
22   * Dictionary name storage. We're borrowing from the argv(3) module.
23   */
24 typedef struct MAPS {
25     char   *title;
26     struct ARGV *argv;
27     int     error;			/* last request only */
28 } MAPS;
29 
30 extern MAPS *maps_create(const char *, const char *, int);
31 extern const char *maps_find(MAPS *, const char *, int);
32 extern const char *maps_file_find(MAPS *, const char *, int);
33 extern MAPS *maps_free(MAPS *);
34 
35 /* LICENSE
36 /* .ad
37 /* .fi
38 /*	The Secure Mailer license must be distributed with this software.
39 /* AUTHOR(S)
40 /*	Wietse Venema
41 /*	IBM T.J. Watson Research
42 /*	P.O. Box 704
43 /*	Yorktown Heights, NY 10598, USA
44 /*--*/
45 
46 #endif
47