Skip to main content

QmiDeviceCommandAbortableBuildRequestFn

Type Alias QmiDeviceCommandAbortableBuildRequestFn 

Source
pub type QmiDeviceCommandAbortableBuildRequestFn = Option<unsafe extern "C" fn(self_: *mut QmiDevice, message: *mut QmiMessage, user_data: gpointer, error: *mut *mut GError) -> *mut QmiMessage>;
Expand description

Callback to run when processing the command abortion. This callback
should create a service-specific and client-specific abort request to
be passed to the device.

self: a QmiDevice.
message: the QmiMessage to abort.
user_data: the data provided when calling qmi_device_command_abortable().
error: Return location for error or NULL.

Returns: the abort request as a QmiMessage or NULL if error is set.

Since: 1.24

Aliased Type§

pub enum QmiDeviceCommandAbortableBuildRequestFn {
    None,
    Some(unsafe extern "C" fn(*mut QmiDevice, *mut GByteArray, *mut c_void, *mut *mut GError) -> *mut GByteArray),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut QmiDevice, *mut GByteArray, *mut c_void, *mut *mut GError) -> *mut GByteArray)

Some value of type T.