Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / util / ctable.h
blob8395d370453f061055aa2840c6dfc8aa649fdbc1
1 /* $NetBSD$ */
3 #ifndef _CTABLE_H_INCLUDED_
4 #define _CTABLE_H_INCLUDED_
6 /*++
7 /* NAME
8 /* ctable 5
9 /* SUMMARY
10 /* cache manager
11 /* SYNOPSIS
12 /* #include <ctable.h>
13 /* DESCRIPTION
14 /* .nf
17 * Interface of the cache manager. The structure of a cache is not visible
18 * to the caller.
21 #define CTABLE struct ctable
22 typedef void *(*CTABLE_CREATE_FN) (const char *, void *);
23 typedef void (*CTABLE_DELETE_FN) (void *, void *);
25 extern CTABLE *ctable_create(int, CTABLE_CREATE_FN, CTABLE_DELETE_FN, void *);
26 extern void ctable_free(CTABLE *);
27 extern void ctable_walk(CTABLE *, void (*) (const char *, const void *));
28 extern const void *ctable_locate(CTABLE *, const char *);
30 /* LICENSE
31 /* .ad
32 /* .fi
33 /* The Secure Mailer license must be distributed with this software.
34 /* AUTHOR(S)
35 /* Wietse Venema
36 /* IBM T.J. Watson Research
37 /* P.O. Box 704
38 /* Yorktown Heights, NY 10598, USA
39 /*--*/
41 #endif