This repository has been archived on 2023-11-05. You can view files and clone it, but cannot push or open issues or pull requests.
wrt/tests/wasm/dl.h
Paul Pan 5c31d4e7ba feat: now gets a functional dl_call
1. update examples
2. implements dl_call
3. add documentations
2023-02-11 23:59:58 +08:00

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