Skip to main content

PtrUpgradeStatusCallback

Type Alias PtrUpgradeStatusCallback 

Source
pub type PtrUpgradeStatusCallback = Option<unsafe extern "C" fn(status: c_int, params: c_int, pUserData: *mut c_void)>;
Expand description

@brief Upgrade status callback function. @param[out] status Returns the upgrade step status. @param[out] params Params of upgrade step status , -1:upgrade fail , 0:upgrade Normal, 1-100:upgrade progress. @param[out] pUserData Pointer to user data, which can be null.

Aliased Type§

pub enum PtrUpgradeStatusCallback {
    None,
    Some(unsafe extern "C" fn(i32, i32, *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(i32, i32, *mut c_void))

Some value of type T.