OptionArgFunc
Description:
[ CCode ( has_target = false ) ]
public delegate bool OptionArgFunc (string option_name, string val, void* data) throws OptionError
public delegate bool OptionArgFunc (string option_name, string val, void* data) throws OptionError
The type of function to be passed as callback for g_option_arg_callback options.
Parameters:
option_name |
The name of the option being parsed. This will be either a single dash followed by a single letter (for a short name) or two dashes followed by a long option name. |
data |
User data added to the OptionGroup containing the option when it was created with OptionGroup |
value |
The value to be parsed. |
Returns:
true if the option was successfully parsed, false if an error occurred, in which case throws should be set with @set |
Namespace: GLib
Package: glib-2.0