Module microvmi::capi [−][src]
Structs
equivalent of CommonInitParams
with C compatibility
equivalent of DriverInitParam
with C API compatibility
Enums
equivalent of KVMInitParams
with C compatibility
Functions
This API allows a C program to initialize the logging system in libmicrovmi. This simply calls env_logger::init() Usually, it’s the library consumer who should add this Rust crate dependency, however, with a C program, we provide this workaround where we provide an API to do just that.
return the concrete DriverType for the given Microvmi driver
Entrypoint for libmicrovmi Initializes a specific driver, or all drivers compiled and returns the first one that succeeded
Free a CString allocated by Rust (for ex. using rust_string_to_c
)