OptionParseFunc


Description:

[ CCode ( has_target = false ) ]
public delegate bool OptionParseFunc (OptionContext context, OptionGroup group, void* data) throws OptionError

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

Parameters:

context

The active OptionContext

group

The group to which the function belongs

data

User data added to the OptionGroup containing the option when it was created with OptionGroup

Returns:

true if the function completed successfully, false if an error occurred, in which case throws should be set with @set


Namespace: GLib
Package: glib-2.0