vzense_sys

Type Alias PtrHotPlugStatusCallback

source
pub type PtrHotPlugStatusCallback = Option<unsafe extern "C" fn(pInfo: *const PsDeviceInfo, state: c_int)>;
Expand description

@brief hotplug status callback function pInfo return the info of the Device, See ::PsDeviceInfo state 0:device added , 1:device removed

Aliased Type§

enum PtrHotPlugStatusCallback {
    None,
    Some(unsafe extern "C" fn(_: *const PsDeviceInfo, _: i32)),
}

Variants§

§1.6.0

None

No value.

§1.6.0

Some(unsafe extern "C" fn(_: *const PsDeviceInfo, _: i32))

Some value of type T.