Basics
Guides
API Reference
Basics
Guides
API Reference
[12:7] extends: object
The #GHookList struct represents a list of hook functions.
GHookList (Handle = null)
Creates a new
HookListby wrapping a native handle or another wrapper.
Handle is the native handle or another wrapper whose handle to adopt.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.clear ()
Removes all the #GHook elements from a #GHookList.
None.init (int hook_size)
Initializes a #GHookList. This must be called before the #GHookList is used.
hook_size is the size of each element in the #GHookList, typically sizeof (GHook)..None.invoke (bool may_recurse)
Calls all of the #GHook functions in a #GHookList.
may_recurse is %TRUE if functions which are already running (e.g. in another thread) can be called. If set to %FALSE, these are skipped.None.invoke_check (bool may_recurse)
Calls all of the #GHook functions in a #GHookList. Any function which returns %FALSE is removed from the #GHookList.
may_recurse is %TRUE if functions which are already running (e.g. in another thread) can be called. If set to %FALSE, these are skipped.None.marshal (bool may_recurse, marshal_data)
Calls a function on each valid #GHook.
may_recurse is %TRUE if hooks which are currently running (e.g. in another thread) are considered valid. If set to %FALSE, these are skipped.marshaller is the function to call for each #GHook.marshal_data is data to pass to @marshaller.None.marshal_check (bool may_recurse, marshal_data)
Calls a function on each valid #GHook and destroys it if the function returns %FALSE.
may_recurse is %TRUE if hooks which are currently running (e.g. in another thread) are considered valid. If set to %FALSE, these are skipped.marshaller is the function to call for each #GHook.marshal_data is data to pass to @marshaller.None.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.