MainContext.findSourceByFuncsUserData

Finds a source with the given source functions and user data. If multiple sources exist with the same source function and user data, the first one found will be returned.

class MainContext
findSourceByFuncsUserData

Parameters

funcs GSourceFuncs*

the source_funcs passed to Source.new.

userData void*

the user data from the callback.

Return Value

Type: Source

the source, if one was found, otherwise NULL