aboutsummaryrefslogtreecommitdiffstats
path: root/lib/includes/hicn/util/windows/dlfcn.h
blob: 7775226cd6252b915fd1d8daa27bf8faa1fd3e66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* dlfcn.h */

#ifndef DLFCN_H
#define DLFCN_H
#define RTLD_GLOBAL 0x100 /* do not hide entries in this module */
#define RTLD_LOCAL  0x000 /* hide entries in this module */

#define RTLD_LAZY   0x000 /* accept unresolved externs */
#define RTLD_NOW    0x001 /* abort if module has unresolved externs */

/*
   How to call in Windows:

   void *h = dlopen ("path\\library.dll", flags)
   void (*fun)() = dlsym (h, "entry")
*/

#ifdef __cplusplus
extern "C" {
#endif

      void *dlopen  (const char *filename, int flag);
      int   dlclose (void *handle);

      void *dlsym   (void *handle, const char *name);

const char *dlerror (void);

#ifdef __cplusplus
}
#endif

#endif