findFuncData

fun findFuncData(hookList: HookList, needValids: Boolean, func: <Error class: unknown class>, data: <Error class: unknown class>? = null): Hook

Finds a #GHook in a #GHookList with the given function and data.

Return

the #GHook with the given @func and @data or null if no matching #GHook is found

Parameters

hookList

a #GHookList

needValids

true if #GHook elements which have been destroyed should be skipped

func

the function to find

data

the data to find