ListSG.findCustom

Finds an element in a GSList, using a supplied function to find the desired element. It iterates over the list, calling the given function which should return 0 when the desired element is found. The function takes two gconstpointer arguments, the GSList element's data as the first argument and the given user data.

class ListSG
findCustom

Parameters

data void*

user data passed to the function

func GCompareFunc

the function to call for each element. It should return 0 when the desired element is found

Return Value

Type: ListSG

the found GSList element, or NULL if it is not found