Type Alias GErrorCopyFunc

Source
pub type GErrorCopyFunc = Option<unsafe extern "C" fn(src_error: *const GError, dest_error: *mut GError)>;
Expand description

GErrorCopyFunc: @src_error: source extended error @dest_error: destination extended error

Specifies the type of function which is called when an extended error instance is copied. It is passed the pointer to the destination error and source error, and should copy only the fields of the private data from @src_error to @dest_error.

Normally, it is better to use G_DEFINE_EXTENDED_ERROR(), as it already takes care of getting the private data from @src_error and @dest_error.

Since: 2.68

Aliased Type§

pub enum GErrorCopyFunc {
    None,
    Some(unsafe extern "C" fn(*const _GError, *mut _GError)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const _GError, *mut _GError))

Some value of type T.