Type Alias GTypeValueFreeFunc

Source
pub type GTypeValueFreeFunc = Option<unsafe extern "C" fn(value: *mut GValue)>;
Expand description

GTypeValueFreeFunc: @value: the value to free

Frees any old contents that might be left in the value->data array of the given value.

No resources may remain allocated through the #GValue contents after this function returns. E.g. for our above string type:

|[ // only free strings without a specific flag for static storage if (!(value->data[1].v_uint & G_VALUE_NOCOPY_CONTENTS)) g_free (value->data[0].v_pointer); ]|

Since: 2.78

Aliased Type§

enum GTypeValueFreeFunc {
    None,
    Some(unsafe extern "C" fn(*mut _GValue)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.