Function microvmi::capi::microvmi_init[][src]

#[no_mangle]
pub unsafe extern "C" fn microvmi_init(
    driver_type: *const DriverType,
    init_params: *const DriverInitParamsFFI,
    init_error: *mut *const c_char
) -> *mut c_void
Expand description

Entrypoint for libmicrovmi Initializes a specific driver, or all drivers compiled and returns the first one that succeeded

In case of error, init_error will be allocated with the underlying error message.

Safety

The init_error pointer should be freed with rs_cstring_free()