EVMC
loader.h
Go to the documentation of this file.
1 /* EVMC: Ethereum Client-VM Connector API.
2  * Copyright 2018-2019 The EVMC Authors.
3  * Licensed under the Apache License, Version 2.0.
4  */
5 
15 #pragma once
16 
17 #if __cplusplus
18 extern "C" {
19 #endif
20 
22 typedef struct evmc_vm* (*evmc_create_fn)(void);
23 
26 {
29 
32 
35 
38 
41 
44 
47 
50 };
51 
89 evmc_create_fn evmc_load(const char* filename, enum evmc_loader_error_code* error_code);
90 
112 struct evmc_vm* evmc_load_and_create(const char* filename, enum evmc_loader_error_code* error_code);
113 
148 struct evmc_vm* evmc_load_and_configure(const char* config,
149  enum evmc_loader_error_code* error_code);
150 
164 const char* evmc_last_error_msg();
165 
166 #if __cplusplus
167 }
168 #endif
169 
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.
const char * evmc_last_error_msg()
Returns the human-readable message describing the most recent error that occurred in EVMC loading sin...
The VM option is invalid.
Definition: loader.h:46
struct evmc_vm *(* evmc_create_fn)(void)
The function pointer type for EVMC create functions.
Definition: loader.h:22
The loader succeeded.
Definition: loader.h:28
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.
The VM option value is invalid.
Definition: loader.h:49
The invalid argument value provided.
Definition: loader.h:37
The VM instance.
Definition: evmc.h:855
The creation of a VM instance has failed.
Definition: loader.h:40
The loader cannot open the given file name.
Definition: loader.h:31
The VM create function not found.
Definition: loader.h:34
evmc_create_fn evmc_load(const char *filename, enum evmc_loader_error_code *error_code)
Dynamically loads the EVMC module with a VM implementation.
The ABI version of the VM instance has mismatched.
Definition: loader.h:43
evmc_loader_error_code
Error codes for the EVMC loader.
Definition: loader.h:25