xref: /netbsd-src/external/ibm-public/postfix/dist/src/util/dict_db.h (revision b1bb3099bf4d47bbe8c7be5b78240a535263771f)
1 /*	$NetBSD: dict_db.h,v 1.1.1.1 2009/06/23 10:08:59 tron Exp $	*/
2 
3 #ifndef _DICT_DB_H_INCLUDED_
4 #define _DICT_DB_H_INCLUDED_
5 
6 /*++
7 /* NAME
8 /*	dict_db 3h
9 /* SUMMARY
10 /*	dictionary manager interface to DB files
11 /* SYNOPSIS
12 /*	#include <dict_db.h>
13 /* DESCRIPTION
14 /* .nf
15 
16  /*
17   * Utility library.
18   */
19 #include <dict.h>
20 
21  /*
22   * External interface.
23   */
24 #define DICT_TYPE_HASH	"hash"
25 #define DICT_TYPE_BTREE	"btree"
26 
27 extern DICT *dict_hash_open(const char *, int, int);
28 extern DICT *dict_btree_open(const char *, int, int);
29 
30  /*
31   * XXX Should be part of the DICT interface.
32   */
33 extern int dict_db_cache_size;
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