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.Hookelement. The default behaviour is to call the hooks destroy function | 
| hook_size | int | r/w | the size of the GLib.HookListelements, in bytes | 
| hooks | GLib.Hook | r/w | the first GLib.Hookelement in the list | 
| is_setup | int | r/w | 1 if the GLib.HookListhas been initialized | 
| seq_id | int | r/w | the next free GLib.Hookid | 
Methods¶
| clear() | |
| init(hook_size) | |
| invoke(may_recurse) | |
| invoke_check(may_recurse) | 
Details¶
- 
class GLib.HookList¶
- The - GLib.HookListstruct represents a list of hook functions.- 
clear()[source]¶
- Removes all the - GLib.Hookelements from a- GLib.HookList.
 - 
init(hook_size)[source]¶
- Parameters: - hook_size ( - int) – the size of each element in the- GLib.HookList, typically- sizeof (GHook).- Initializes a - GLib.HookList. This must be called before the- GLib.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 to- False, these are skipped- Calls all of the - GLib.Hookfunctions in a- GLib.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 to- False, these are skipped- Calls all of the - GLib.Hookfunctions in a- GLib.HookList. Any function which returns- Falseis removed from the- GLib.HookList.
 
-