xref: /netbsd-src/external/ibm-public/postfix/dist/src/util/load_lib.h (revision e89934bbf778a6d6d6894877c4da59d0c7835b0f)
1 /*	$NetBSD: load_lib.h,v 1.2 2017/02/14 01:16:49 christos Exp $	*/
2 
3 #ifndef _LOAD_LIB_H_INCLUDED_
4 #define _LOAD_LIB_H_INCLUDED_
5 
6 /*++
7 /* NAME
8 /*	load_lib 3h
9 /* SUMMARY
10 /*	library loading wrappers
11 /* SYNOPSIS
12 /*	#include "load_lib.h"
13 /* DESCRIPTION
14 /* .nf
15 
16  /*
17   * External interface.
18   */
19 /* NULL name terminates list */
20 typedef struct LIB_FN {
21     const char *name;
22     void  (*fptr)(void);
23 } LIB_FN;
24 
25 typedef struct LIB_DP {
26     const char *name;
27     void  *dptr;
28 } LIB_DP;
29 
30 extern void load_library_symbols(const char *, LIB_FN *, LIB_DP *);
31 
32 /* LICENSE
33 /* .ad
34 /* .fi
35 /*	The Secure Mailer license must be distributed with this software.
36 /* AUTHOR(S)
37 /*	LaMont Jones
38 /*	Hewlett-Packard Company
39 /*	3404 Harmony Road
40 /*	Fort Collins, CO 80528, USA
41 /*
42 /*	Wietse Venema
43 /*	IBM T.J. Watson Research
44 /*	P.O. Box 704
45 /*	Yorktown Heights, NY 10598, USA
46 /*--*/
47 
48 #endif
49