-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcurll.cpp
More file actions
41 lines (35 loc) · 832 Bytes
/
curll.cpp
File metadata and controls
41 lines (35 loc) · 832 Bytes
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
35
36
37
38
39
40
41
#include "curll.h"
#include "urll.h"
#ifdef __cplusplus
extern "C"
{
#endif
void* urll_dlopen(const char* location)
{
return URLL::dlopen(location);
}
void* urll_dlsym(void* handle, const char* name)
{
return URLL::dlsym(handle, name);
}
void* urll_dlsym_func(void* handle, const char* name, void** function)
{
*function = URLL::dlsym(handle, name);
return (*function == nullptr ? nullptr : handle);
}
void* urll_dlsym_var(void* handle, const char* name, void* var)
{
var = URLL::dlsym(handle, name);
return (var == nullptr ? nullptr : handle);
}
int urll_dlclose(void* handle)
{
return URLL::dlclose(handle);
}
char* urll_dlerror()
{
return URLL::dlerror();
}
#ifdef __cplusplus
}
#endif