21typedef struct evmc_vm* (*evmc_create_fn)(void);
struct evmc_vm * evmc_load_and_configure(const char *config, enum evmc_loader_error_code *error_code)
Dynamically loads the EVMC module, then creates and configures the VM instance.
struct evmc_vm * evmc_load_and_create(const char *filename, enum evmc_loader_error_code *error_code)
Dynamically loads the EVMC module and creates the VM instance.
struct evmc_vm *(* evmc_create_fn)(void)
The function pointer type for EVMC create functions.
const char * evmc_last_error_msg(void)
Returns the human-readable message describing the most recent error that occurred in EVMC loading sin...
evmc_create_fn evmc_load(const char *filename, enum evmc_loader_error_code *error_code)
Dynamically loads the EVMC module with a VM implementation.
evmc_loader_error_code
Error codes for the EVMC loader.
@ EVMC_LOADER_SUCCESS
The loader succeeded.
@ EVMC_LOADER_ABI_VERSION_MISMATCH
The ABI version of the VM instance has mismatched.
@ EVMC_LOADER_CANNOT_OPEN
The loader cannot open the given file name.
@ EVMC_LOADER_UNSPECIFIED_ERROR
This error value will be never returned by the EVMC loader, but can be used by users to init evmc_loa...
@ EVMC_LOADER_INVALID_ARGUMENT
The invalid argument value provided.
@ EVMC_LOADER_SYMBOL_NOT_FOUND
The VM create function not found.
@ EVMC_LOADER_VM_CREATION_FAILURE
The creation of a VM instance has failed.
@ EVMC_LOADER_INVALID_OPTION_NAME
The VM option is invalid.
@ EVMC_LOADER_INVALID_OPTION_VALUE
The VM option value is invalid.