EVMC
loader.h File Reference

Go to the source code of this file.

Typedefs

typedef struct evmc_vm *(* evmc_create_fn) (void)
 The function pointer type for EVMC create functions.
 

Enumerations

enum  evmc_loader_error_code {
  EVMC_LOADER_SUCCESS = 0 , EVMC_LOADER_CANNOT_OPEN = 1 , EVMC_LOADER_SYMBOL_NOT_FOUND = 2 , EVMC_LOADER_INVALID_ARGUMENT = 3 ,
  EVMC_LOADER_VM_CREATION_FAILURE = 4 , EVMC_LOADER_ABI_VERSION_MISMATCH = 5 , EVMC_LOADER_INVALID_OPTION_NAME = 6 , EVMC_LOADER_INVALID_OPTION_VALUE = 7 ,
  EVMC_LOADER_UNSPECIFIED_ERROR = -1
}
 Error codes for the EVMC loader. More...
 

Functions

evmc_create_fn evmc_load (const char *filename, enum evmc_loader_error_code *error_code)
 Dynamically loads the EVMC module with a VM implementation.
 
struct evmc_vmevmc_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_vmevmc_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.
 
const char * evmc_last_error_msg (void)
 Returns the human-readable message describing the most recent error that occurred in EVMC loading since the last call to this function.
 

Detailed Description

EVMC Loader Library.

The EVMC Loader Library supports loading VMs implemented as Dynamically Loaded Libraries (DLLs, shared objects).

Definition in file loader.h.