xref: /netbsd-src/external/ibm-public/postfix/dist/src/util/dict_lmdb.h (revision c48c605c14fd8622b523d1d6a3f0c0bad133ea89)
1 /*	$NetBSD: dict_lmdb.h,v 1.3 2023/12/23 20:30:46 christos Exp $	*/
2 
3 #ifndef _DICT_LMDB_H_INCLUDED_
4 #define _DICT_LMDB_H_INCLUDED_
5 
6 /*++
7 /* NAME
8 /*	dict_lmdb 3h
9 /* SUMMARY
10 /*	dictionary manager interface to OpenLDAP LMDB files
11 /* SYNOPSIS
12 /*	#include <dict_lmdb.h>
13 /* DESCRIPTION
14 /* .nf
15 
16  /*
17   * Utility library.
18   */
19 #include <dict.h>
20 #include <mkmap.h>
21 
22  /*
23   * External interface.
24   */
25 #define DICT_TYPE_LMDB	"lmdb"
26 
27 extern DICT *dict_lmdb_open(const char *, int, int);
28 extern MKMAP *mkmap_lmdb_open(const char *);
29 
30  /*
31   * XXX Should be part of the DICT interface.
32   */
33 extern size_t dict_lmdb_map_size;
34 
35  /* Minimum size without SIGSEGV. */
36 #define DEFINE_DICT_LMDB_MAP_SIZE size_t dict_lmdb_map_size = 8192
37 
38 /* LICENSE
39 /* .ad
40 /* .fi
41 /*	The Secure Mailer license must be distributed with this software.
42 /* AUTHOR(S)
43 /*	Howard Chu
44 /*	Symas Corporation
45 /*
46 /*	Wietse Venema
47 /*	Google, Inc.
48 /*	111 8th Avenue
49 /*	New York, NY 10011, USA
50 /*--*/
51 
52 #endif
53