aboutsummaryrefslogtreecommitdiffstats
path: root/lib/includes/hicn/util/windows/dlfcn.h
blob: f1457964e50096e61e4362115fa10e09146001c3 (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
34
/* 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