Postfix3.3.1
maps.h
[詳解]
1 #ifndef _MAPS_H_INCLUDED_
2 #define _MAPS_H_INCLUDED_
3 
4 /*++
5 /* NAME
6 /* maps 3h
7 /* SUMMARY
8 /* multi-dictionary search
9 /* SYNOPSIS
10 /* #include <maps.h>
11 /* DESCRIPTION
12 /* .nf
13 
14  /*
15  * Utility library.
16  */
17 #include <dict.h>
18 
19  /*
20  * Dictionary name storage. We're borrowing from the argv(3) module.
21  */
22 typedef struct MAPS {
23  char *title;
24  struct ARGV *argv;
25  int error; /* last request only */
26 } MAPS;
27 
28 extern MAPS *maps_create(const char *, const char *, int);
29 extern const char *maps_find(MAPS *, const char *, int);
30 extern MAPS *maps_free(MAPS *);
31 
32 /* LICENSE
33 /* .ad
34 /* .fi
35 /* The Secure Mailer license must be distributed with this software.
36 /* AUTHOR(S)
37 /* Wietse Venema
38 /* IBM T.J. Watson Research
39 /* P.O. Box 704
40 /* Yorktown Heights, NY 10598, USA
41 /*--*/
42 
43 #endif
Definition: argv.h:17
Definition: maps.h:22
MAPS * maps_create(const char *, const char *, int)
Definition: maps.c:112
char * title
Definition: maps.h:23
struct MAPS MAPS
const char * maps_find(MAPS *, const char *, int)
Definition: maps.c:162
struct ARGV * argv
Definition: maps.h:24
int error
Definition: maps.h:25
MAPS * maps_free(MAPS *)
Definition: maps.c:213