Postfix3.3.1
dict_db.h
[詳解]
1 #ifndef _DICT_DB_H_INCLUDED_
2 #define _DICT_DB_H_INCLUDED_
3 
4 /*++
5 /* NAME
6 /* dict_db 3h
7 /* SUMMARY
8 /* dictionary manager interface to DB files
9 /* SYNOPSIS
10 /* #include <dict_db.h>
11 /* DESCRIPTION
12 /* .nf
13 
14  /*
15  * Utility library.
16  */
17 #include <dict.h>
18 
19  /*
20  * External interface.
21  */
22 #define DICT_TYPE_HASH "hash"
23 #define DICT_TYPE_BTREE "btree"
24 
25 extern DICT *dict_hash_open(const char *, int, int);
26 extern DICT *dict_btree_open(const char *, int, int);
27 
28  /*
29  * XXX Should be part of the DICT interface.
30  *
31  * You can override the default dict_db_cache_size setting before calling
32  * dict_hash_open() or dict_btree_open(). This is done in mkmap_db_open() to
33  * set a larger memory pool for database (re)builds.
34  */
35 extern int dict_db_cache_size;
36 
37 #define DEFINE_DICT_DB_CACHE_SIZE int dict_db_cache_size = (128 * 1024)
38 
39 /* LICENSE
40 /* .ad
41 /* .fi
42 /* The Secure Mailer license must be distributed with this software.
43 /* AUTHOR(S)
44 /* Wietse Venema
45 /* IBM T.J. Watson Research
46 /* P.O. Box 704
47 /* Yorktown Heights, NY 10598, USA
48 /*
49 /* Wietse Venema
50 /* Google, Inc.
51 /* 111 8th Avenue
52 /* New York, NY 10011, USA
53 /*--*/
54 
55 #endif
int dict_db_cache_size
Definition: dict.h:78
DICT * dict_btree_open(const char *, int, int)
DICT * dict_hash_open(const char *, int, int)