#[no_mangle]
pub extern "C" fn install_from_usb(
source: *const c_char,
destination: *const c_char,
) -> i32
Expand description
Installs images from a source disk to a destination disk.
This function can auto-detect the install source and destination if there is exactly one viable candidate for each, otherwise they must be supplied by the caller.
§Arguments
source
: UTF-8 source block device topological path, or NULL to auto-detect a removable disk.
destination
: UTF-8 destination block device topological path, or NULL to auto-detect internal
storage.
§Returns
A zx_status code.
§Safety
The string arguments must either be NULL or meet all the conditions given at https://doc.rust-lang.org/std/ffi/struct.CStr.html, primarily:
- The string must be null-terminated
- The contents must not be modified until this function returns