Function

GLibOptionParseFunc

Declaration

gboolean
(* GOptionParseFunc) (
  GOptionContext* context,
  GOptionGroup* group,
  gpointer data,
  GError** error
)

Description [src]

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

Parameters

context GOptionContext
 

The active GOptionContext.

 The data is owned by the caller of the function.
group GOptionGroup
 

The group to which the function belongs.

 The data is owned by the caller of the function.
data gpointer
 

User data added to the GOptionGroup containing the option when it was created with g_option_group_new()

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

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