#[no_mangle]
pub unsafe extern "C" fn crosvm_client_cancel_fake_power(
    socket_path: *const c_char,
    battery_type: *const c_char
) -> bool
Expand description

Resume the battery status of crosvm instance from fake status

The function returns true on success or false if an error occurred.

§Arguments

  • socket_path - Path to the crosvm control socket
  • battery_type - Type of battery emulation corresponding to vm_tools::BatteryType

§Safety

The caller will ensure the raw pointers in arguments passed in can be safely used by CStr::from_ptr().