Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / util / nvtable.h
blob689c2ae911b4679db10d71c1d06d39eaa1b24aa7
1 /* $NetBSD$ */
3 #ifndef _NVTABLE_H_INCLUDED_
4 #define _NVTABLE_H_INCLUDED_
6 /*++
7 /* NAME
8 /* nvtable 3h
9 /* SUMMARY
10 /* attribute list manager
11 /* SYNOPSIS
12 /* #include <nvtable.h>
13 /* DESCRIPTION
14 /* .nf
17 * Utility library.
19 #include <htable.h>
20 #include <mymalloc.h>
22 typedef struct HTABLE NVTABLE;
23 typedef struct HTABLE_INFO NVTABLE_INFO;
25 #define nvtable_create(size) htable_create(size)
26 #define nvtable_locate(table, key) htable_locate((table), (key))
27 #define nvtable_walk(table, action, ptr) htable_walk((table), (action), (ptr))
28 #define nvtable_list(table) htable_list(table)
29 #define nvtable_find(table, key) htable_find((table), (key))
30 #define nvtable_delete(table, key) htable_delete((table), (key), myfree)
31 #define nvtable_free(table) htable_free((table), myfree)
33 extern NVTABLE_INFO *nvtable_update(NVTABLE *, const char *, const char *);
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 /*--*/
46 #endif