Type Alias GOptionParseFunc

Source
pub type GOptionParseFunc = Option<unsafe extern "C" fn(context: *mut GOptionContext, group: *mut GOptionGroup, data: gpointer, error: *mut *mut GError) -> gboolean>;
Expand description

GOptionParseFunc: @context: The active #GOptionContext @group: The group to which the function belongs @data: User data added to the #GOptionGroup containing the option when it was created with g_option_group_new() @error: A return location for error details

The type of function that can be called before and after parsing.

Returns: %TRUE if the function completed successfully, %FALSE if an error occurred, in which case @error should be set with g_set_error()

Aliased Type§

enum GOptionParseFunc {
    None,
    Some(unsafe extern "C" fn(*mut _GOptionContext, *mut _GOptionGroup, *mut c_void, *mut *mut _GError) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut _GOptionContext, *mut _GOptionGroup, *mut c_void, *mut *mut _GError) -> i32)

Some value of type T.