Returns the next glib.Hook in a glib.HookList which has not been destroyed. The reference count for the glib.Hook is incremented, so you must call Hook.unref to restore it when no longer needed. (Or continue to call Hook.nextValid until NULL is returned.)

class Hook


hookList HookList
hook Hook

the current glib.Hook

mayBeInCall bool

TRUE if hooks which are currently running (e.g. in another thread) are considered valid. If set to FALSE, these are skipped

Return Value

Type: Hook

the next valid glib.Hook, or NULL if none are valid