]> granicus.if.org Git - postgresql/blob - src/include/utils/dynamic_loader.h
Massive commit to run PGINDENT on all *.c and *.h files.
[postgresql] / src / include / utils / dynamic_loader.h
1 /*-------------------------------------------------------------------------
2  *
3  * dynamic_loader.h--
4  *
5  *
6  *
7  * Copyright (c) 1994, Regents of the University of California
8  *
9  * $Id: dynamic_loader.h,v 1.6 1997/09/07 05:02:22 momjian Exp $
10  *
11  *-------------------------------------------------------------------------
12  */
13 #ifndef DYNAMIC_LOADER_H
14 #define DYNAMIC_LOADER_H
15
16 #include <sys/types.h>
17 #include <sys/param.h>                  /* For MAXPATHLEN */
18
19 #include <postgres.h>
20
21 #ifdef MIN
22 #undef MIN
23 #undef MAX
24 #endif                                                  /* MIN */
25
26 /*
27  * List of dynamically loaded files.
28  */
29
30 typedef struct df_files
31 {
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;
37 }                               DynamicFileList;
38
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);
43
44 #endif                                                  /* DYNAMIC_LOADER_H */