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

Modifies the battery status of crosvm instance whose control socket is listening on socket_path.

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

§Safety

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