lama_byterun/byterun/include/module_manager.h

21 lines
408 B
C

#pragma once
#include <stdint.h>
#include "utils.h"
struct ModSearchResult {
size_t symbol_offset;
uint32_t mod_id;
bytefile *mod_file; // = NULL => not found
};
void mod_add_search_path(const char *path);
bytefile *mod_get(uint32_t id);
int32_t mod_load(const char *name); // < 0 => not found
uint32_t mod_add(bytefile *module);
struct ModSearchResult mod_search_pub_symbol(const char *name);