file: functions.aus

class: NodeForeachFuncCallback

[1677:7] extends: object

Specifies the type of function passed to g_node_children_foreach(). The function is called with each child node, together with the user data passed to g_node_children_foreach().

Members

Methods

class: VoidFuncCallback

[3048:7] extends: object

Declares a type of function which takes no arguments and has no return value. It is used to specify the type function passed to g_atexit().

Members

Methods

class: GLibApi

[3117:14] static extends: object

Generated low-level function wrappers for namespace GLib.

Members

Methods

class: OptionErrorFuncCallback

[1890:7] extends: object

The type of function to be used as callback when a parse error occurs.

Members

Methods

class: HookMarshallerCallback

[1532:7] extends: object

Defines the type of function used by g_hook_list_marshal().

Members

Methods

class: HookCheckMarshallerCallback

[1178:7] extends: object

Defines the type of function used by g_hook_list_marshal_check().

Members

Methods

class: OptionArgFuncCallback

[1821:7] extends: object

The type of function to be passed as callback for %G_OPTION_ARG_CALLBACK options.

Members

Methods

class: IOFuncCallback

[1604:7] extends: object

Specifies the type of function passed to g_io_add_watch() or g_io_add_watch_full(), which is called when the requested condition on a #GIOChannel is satisfied.

Members

Methods

class: TraverseFuncCallback

[2905:7] extends: object

Specifies the type of function passed to g_tree_traverse(). It is passed the key and value of each node, together with the @user_data parameter passed to g_tree_traverse(). If the function returns %TRUE, the traversal is stopped.

Members

Methods

class: CacheDupFuncCallback

[86:7] extends: object

Specifies the type of the @key_dup_func function passed to g_cache_new(). The function is passed a key (not a value as the prototype implies) and should return a duplicate of the key.

Members

Methods

class: TranslateFuncCallback

[2834:7] extends: object

The type of functions which are used to translate user-visible strings, for

output.

Members

Methods

class: NodeTraverseFuncCallback

[1750:7] extends: object

Specifies the type of function passed to g_node_traverse(). The function is called with each of the nodes visited, together with the user data passed to g_node_traverse(). If the function returns %TRUE, then the traversal is stopped.

Members

Methods

class: ErrorInitFuncCallback

[877:7] extends: object

Specifies the type of function which is called just after an extended error instance is created and its fields filled. It should only initialize the fields in the private data, which can be received with the generated *_get_private() function. Normally, it is better to use G_DEFINE_EXTENDED_ERROR(), as it already takes care of getting the private data from @error.

Members

Methods

class: SourceFuncsCheckFuncCallback

[2462:7] extends: object

Checks if the source is ready to be dispatched. Called after all the file descriptors are polled. The source should return %TRUE if it is ready to be dispatched. Note that some time may have passed since the previous prepare function was called, so the source should be checked again here. Since 2.36 this may be NULL, in which case the effect is as if the function always returns FALSE.

Members

Methods

class: ThreadFuncCallback

[2764:7] extends: object

Specifies the type of the @func functions passed to g_thread_new() or g_thread_try_new().

Members

Methods

class: CacheDestroyFuncCallback

[15:7] extends: object

Specifies the type of the @value_destroy_func and @key_destroy_func functions passed to g_cache_new(). The functions are passed a pointer to the #GCache key or #GCache value and should free any memory and other resources associated with it.

Members

Methods

class: CopyFuncCallback

[512:7] extends: object

A function of this signature is used to copy the node data when doing a deep-copy of a tree.

Members

Methods

class: EqualFuncCallback

[653:7] extends: object

Specifies the type of a function used to test two values for equality. The function should return %TRUE if both values are equal and %FALSE otherwise.

Members

Methods

class: FreeFuncCallback

[948:7] extends: object

Declares a type of function which takes an arbitrary data pointer argument and has no return value. It is not currently used in GLib or GTK.

Members

Methods

class: SequenceIterCompareFuncCallback

[2245:7] extends: object

A #GSequenceIterCompareFunc is a function used to compare iterators. It must return zero if the iterators compare equal, a negative value if @a comes before @b, and a positive value if @b comes before @a.

Members

Methods

class: DestroyNotifyCallback

[583:7] extends: object

Specifies the type of function which is called when a data element is destroyed. It is passed the pointer to the data element and should free any memory and resources allocated for it.

Members

Methods

class: ErrorClearFuncCallback

[726:7] extends: object

Specifies the type of function which is called when an extended error instance is freed. It is passed the error pointer about to be freed, and should free the error's private data fields. Normally, it is better to use G_DEFINE_EXTENDED_ERROR(), as it already takes care of getting the private data from @error.

Members

Methods

class: CompletionStrncmpFuncCallback

[442:7] extends: object

Specifies the type of the function passed to g_completion_set_compare(). This is used when you use strings as #GCompletion items.

Members

Methods

class: PrintFuncCallback

[2103:7] extends: object

Specifies the type of the print handler functions. These are called with the complete formatted string to output.

Members

Methods

class: HookFuncCallback

[1463:7] extends: object

Defines the type of a hook function that can be invoked by g_hook_list_invoke().

Members

Methods

class: OptionParseFuncCallback

[1961:7] extends: object

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

Members

Methods

class: SpawnChildSetupFuncCallback

[2625:7] extends: object

Specifies the type of the setup function passed to g_spawn_async(), g_spawn_sync() and g_spawn_async_with_pipes(), which can, in very limited ways, be used to affect the child's execution. On POSIX platforms, the function is called in the child after GLib has performed all the setup it plans to perform, but before calling exec(). Actions taken in this function will only affect the child, not the parent. On Windows, the function is called in the parent. Its usefulness on Windows is thus questionable. In many cases executing the child setup function in the parent can have ill effects, and you should be very careful when porting software to Windows that uses child setup functions. However, even on POSIX, you are extremely limited in what you can safely do from a #GSpawnChildSetupFunc, because any mutexes that were held by other threads in the parent process at the time of the fork() will still be locked in the child process, and they will never be unlocked (since the threads that held them don't exist in the child). POSIX allows only async-signal-safe functions (see signal(7)) to be called in the child between fork() and exec(), which drastically limits the usefulness of child setup functions. In particular, it is not safe to call any function which may call malloc(), which includes POSIX functions such as setenv(). If you need to set up the child environment differently from the parent, you should use g_get_environ(), g_environ_setenv(), and g_environ_unsetenv(), and then pass the complete environment list to the g_spawn... function.

Members

Methods

class: CompareFuncCallback

[301:7] extends: object

Specifies the type of a comparison function used to compare two values. The function should return a negative integer if the first value comes before the second, 0 if they are equal, or a positive integer if the first value comes after the second.

Members

Methods

class: SourceFuncsFinalizeFuncCallback

[2535:7] extends: object

Finalizes the source. Called when the source is finalized. At this point, the source will have been destroyed, had its callback cleared, and have been removed from its [type@GLib.MainContext], but it will still have its final reference count, so methods can be called on it from within this function.

Members

Methods

class: ErrorCopyFuncCallback

[801:7] extends: object

Specifies the type of function which is called when an extended error instance is copied. It is passed the pointer to the destination error and source error, and should copy only the fields of the private data from @src_error to @dest_error. Normally, it is better to use G_DEFINE_EXTENDED_ERROR(), as it already takes care of getting the private data from @src_error and @dest_error.

Members

Methods

class: ScannerMsgFuncCallback

[2172:7] extends: object

Specifies the type of the message handler function.

Members

Methods

class: HashFuncCallback

[1039:7] extends: object

Specifies the type of the hash function which is passed to [func@HashTable.new] when a [struct@HashTable] is created. The function is passed a key and should return an unsigned int hash value. The functions [func@direct_hash], [func@int_hash] and [func@str_hash] provide hash functions which can be used when the key is a void*, int*, and char* respectively. [func@direct_hash] is also the appropriate hash function for keys of the form GINT_TO_POINTER (n) (or similar macros). A good hash functions should produce hash values that are evenly distributed over a fairly large range. The modulus is taken with the hash table size (a prime number) to find the 'bucket' to place each key into. The function should also be very fast, since it is called for each key lookup. Note that the hash functions provided by GLib have these qualities, but are not particularly robust against manufactured keys that cause hash collisions. Therefore, you should consider choosing a more secure hash function when using a [struct@HashTable] with keys that originate in untrusted data (such as HTTP requests). Using [func@str_hash] in that situation might make your application vulnerable to Algorithmic Complexity Attacks. The key to choosing a good hash is unpredictability. Even cryptographic hashes are very easy to find collisions for when the remainder is taken modulo a somewhat predictable prime number. There must be an element of randomness that an attacker is unable to guess.

Members

Methods

class: ClearHandleFuncCallback

[229:7] extends: object

Specifies the type of function passed to [func@GLib.clear_handle_id] The implementation is expected to free the resource identified by @handle_id; for instance, if @handle_id is a [struct@GLib.Source] ID, [func@GLib.Source.remove] can be used.

Members

Methods

class: HookFindFuncCallback

[1392:7] extends: object

Defines the type of the function passed to g_hook_find().

Members

Methods

class: TraverseNodeFuncCallback

[2977:7] extends: object

Specifies the type of function passed to g_tree_foreach_node(). It is passed each node, together with the @user_data parameter passed to g_tree_foreach_node(). If the function returns %TRUE, the traversal is stopped.

Members

Methods

class: TestFuncCallback

[2694:7] extends: object

The type used for test case functions.

Members

Methods

class: HookCompareFuncCallback

[1249:7] extends: object

Defines the type of function used to compare #GHook elements in g_hook_insert_sorted().

Members

Methods

class: SourceDisposeFuncCallback

[2317:7] extends: object

Dispose function for @source. See [method@GLib.Source.set_dispose_function] for details.

Members

Methods

class: CompletionFuncCallback

[372:7] extends: object

Specifies the type of the function passed to g_completion_new(). It should return the string corresponding to the given target item. This is used when you use data structures as #GCompletion items.

Members

Methods

class: HookCheckFuncCallback

[1109:7] extends: object

Defines the type of a hook function that can be invoked by g_hook_list_invoke_check().

Members

Methods

class: HookFinalizeFuncCallback

[1321:7] extends: object

Defines the type of function to be called when a hook in a list of hooks gets finalized.

Members

Methods

class: PollFuncCallback

[2033:7] extends: object

Specifies the type of function passed to g_main_context_set_poll_func(). The semantics of the function should match those of the poll() system call.

Members

Methods

class: SourceDummyMarshalCallback

[2388:7] extends: object

This is just a placeholder for #GClosureMarshal, which cannot be used here for dependency reasons.

Members

Methods

class: CacheNewFuncCallback

[157:7] extends: object

Specifies the type of the @value_new_func function passed to g_cache_new(). It is passed a #GCache key and should create the value corresponding to the key.

Members

Methods