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.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 skipped
Calls 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 skipped
Calls all of the
GLib.Hook
functions in aGLib.HookList
. Any function which returnsFalse
is removed from theGLib.HookList
.
- marshal(may_recurse, marshaller, *marshal_data)[source]¶
- Parameters:
Calls a function on each valid
GLib.Hook
.