GLib.HookList¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
dummy |
[ |
r/w |
unused |
dummy3 |
r/w |
unused |
|
finalize_hook |
r/w |
the function to call to finalize a |
|
hook_size |
r/w |
the size of the |
|
hooks |
r/w |
the first |
|
is_setup |
r/w |
1 if the |
|
seq_id |
r/w |
the next free |
Methods¶
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class GLib.HookList¶
The
GLib.HookListstruct represents a list of hook functions.- clear()[source]¶
Removes all the
GLib.Hookelements 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.HookListis used.
- invoke(may_recurse)[source]¶
- Parameters:
may_recurse (
bool) –Trueif functions which are already running (e.g. in another thread) can be called. If set toFalse, these are skipped
Calls all of the
GLib.Hookfunctions in aGLib.HookList.
- invoke_check(may_recurse)[source]¶
- Parameters:
may_recurse (
bool) –Trueif functions which are already running (e.g. in another thread) can be called. If set toFalse, these are skipped
Calls all of the
GLib.Hookfunctions in aGLib.HookList. Any function which returnsFalseis removed from theGLib.HookList.
- marshal(may_recurse, marshaller, *marshal_data)[source]¶
- Parameters:
Calls a function on each valid
GLib.Hook.