diff options
Diffstat (limited to 'src/load.h')
-rw-r--r-- | src/load.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/load.h b/src/load.h new file mode 100644 index 0000000..5d6b00e --- /dev/null +++ b/src/load.h @@ -0,0 +1,19 @@ +#ifndef _LOAD_H_ +#define _LOAD_H_ + +#include <stddef.h> +#include "api/vm.h" + +typedef struct +{ + void *api_library; + UwUVMFunction *main_function; + UwUVMFunction **functions; + size_t num_functions; + void **libraries; + size_t num_libraries; +} Program; + +Program load_program(const char *progname, const char *modname); + +#endif |