summaryrefslogtreecommitdiff
path: root/wrappers/dlfcn/dlfake.h
blob: 87ccab7c87fb88468cab47bbf7e66ec04dcc35a2 (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
#ifndef _CTYPES_DLFCN_H_
#define _CTYPES_DLFCN_H_

#ifndef PY_ALL_STATIC
#error  something went wrong
#endif

#include <dlfcn.h>

#ifdef __cplusplus
extern "C" {
#endif

void *  dlfake_dlopen(const char *, int);
int     dlfake_dlclose(void *);
void *  dlfake_dlsym(void *, const char *);
char *  dlfake_dlerror(void);
int     dlfake_dladdr(const void *, void *);

#define ctypes_dlopen  dlfake_dlopen
#define ctypes_dlclose dlfake_dlclose
#define ctypes_dlsym   dlfake_dlsym
#define ctypes_dladdr  dlfake_dladdr
#define ctypes_dlerror dlfake_dlerror

#ifdef __cplusplus
}
#endif

#endif