dict_db.h revision 1.2
1/* $NetBSD: dict_db.h,v 1.2 2017/02/14 01:16:49 christos 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 27extern DICT *dict_hash_open(const char *, int, int); 28extern DICT *dict_btree_open(const char *, int, int); 29 30 /* 31 * XXX Should be part of the DICT interface. 32 * 33 * You can override the default dict_db_cache_size setting before calling 34 * dict_hash_open() or dict_btree_open(). This is done in mkmap_db_open() to 35 * set a larger memory pool for database (re)builds. 36 */ 37extern int dict_db_cache_size; 38 39#define DEFINE_DICT_DB_CACHE_SIZE int dict_db_cache_size = (128 * 1024) 40 41/* LICENSE 42/* .ad 43/* .fi 44/* The Secure Mailer license must be distributed with this software. 45/* AUTHOR(S) 46/* Wietse Venema 47/* IBM T.J. Watson Research 48/* P.O. Box 704 49/* Yorktown Heights, NY 10598, USA 50/*--*/ 51 52#endif 53