18 lines
360 B
C
18 lines
360 B
C
#ifndef WRT_DL_H
|
|
#define WRT_DL_H
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef enum {
|
|
WRT_OK = 0,
|
|
WRT_ERROR = -1,
|
|
} Status;
|
|
|
|
int dl_open(const char *filename, int flags);
|
|
int dl_sym(int handle, const char *symbol, const char *signature);
|
|
int64_t dl_call(int symbol, ...);
|
|
Status dl_close_sym(int symbol);
|
|
Status dl_close(int handle);
|
|
|
|
#endif // WRT_DL_H
|