hotplug_fn

Type Alias hotplug_fn 

Source
pub type hotplug_fn = Option<unsafe extern "C" fn(plug_handler: *mut HotplugHandler, plugged_dev: *mut DeviceState, errp: *mut *mut Error)>;
Expand description

hotplug_fn: @plug_handler: a device performing plug/uplug action @plugged_dev: a device that has been (un)plugged @errp: returns an error if this function fails

Aliased Type§

pub enum hotplug_fn {
    None,
    Some(unsafe extern "C" fn(*mut HotplugHandler, *mut DeviceState, *mut *mut Error)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut HotplugHandler, *mut DeviceState, *mut *mut Error))

Some value of type T.