Type Alias GErrorClearFunc

Source
pub type GErrorClearFunc = Option<unsafe extern "C" fn(error: *mut GError)>;
Expand description

GErrorClearFunc: @error: extended error to clear

Specifies the type of function which is called when an extended error instance is freed. It is passed the error pointer about to be freed, and should free the error’s private data fields.

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

Since: 2.68

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.