1 /*-------------------------------------------------------------------------
7 * Copyright (c) 1994, Regents of the University of California
9 * $Id: dynamic_loader.h,v 1.6 1997/09/07 05:02:22 momjian Exp $
11 *-------------------------------------------------------------------------
13 #ifndef DYNAMIC_LOADER_H
14 #define DYNAMIC_LOADER_H
16 #include <sys/types.h>
17 #include <sys/param.h> /* For MAXPATHLEN */
27 * List of dynamically loaded files.
30 typedef struct df_files
32 char filename[MAXPATHLEN]; /* Full pathname of file */
33 dev_t device; /* Device file is on */
34 ino_t inode; /* Inode number of file */
35 void *handle; /* a handle for pg_dl* functions */
36 struct df_files *next;
39 extern void *pg_dlopen(char *filename);
40 extern func_ptr pg_dlsym(void *handle, char *funcname);
41 extern void pg_dlclose(void *handle);
42 extern char *pg_dlerror(void);
44 #endif /* DYNAMIC_LOADER_H */