GLib.HookList¶
Fields¶
Name | Type | Access | Description |
---|---|---|---|
dummy | [object ] |
r/w | unused |
dummy3 | object |
r/w | unused |
finalize_hook | GLib.HookFinalizeFunc |
r/w | the function to call to finalize a GLib.Hook element. The default behaviour is to call the hooks destroy function |
hook_size | int |
r/w | the size of the GLib.HookList elements, in bytes |
hooks | GLib.Hook |
r/w | the first GLib.Hook element in the list |
is_setup | int |
r/w | 1 if the GLib.HookList has been initialized |
seq_id | int |
r/w | the next free GLib.Hook id |
Methods¶
clear () |
|
init (hook_size) |
|
invoke (may_recurse) |
|
invoke_check (may_recurse) |
Details¶
-
class
GLib.
HookList
¶ The
GLib.HookList
struct represents a list of hook functions.-
clear
()[source]¶ Removes all the
GLib.Hook
elements from aGLib.HookList
.
-
init
(hook_size)[source]¶ Parameters: hook_size ( int
) – the size of each element in theGLib.HookList
, typicallysizeof (GHook)
.Initializes a
GLib.HookList
. This must be called before theGLib.HookList
is used.
-
invoke
(may_recurse)[source]¶ Parameters: may_recurse ( bool
) –True
if functions which are already running (e.g. in another thread) can be called. If set toFalse
, these are skippedCalls all of the
GLib.Hook
functions in aGLib.HookList
.
-
invoke_check
(may_recurse)[source]¶ Parameters: may_recurse ( bool
) –True
if functions which are already running (e.g. in another thread) can be called. If set toFalse
, these are skippedCalls all of the
GLib.Hook
functions in aGLib.HookList
. Any function which returnsFalse
is removed from theGLib.HookList
.
-