Function
GLibSListinsert_sorted
Description
Inserts a new element into the list, using the given comparison function to determine its position.
This function is not directly available to language bindings.
Parameters
list
-
Type: A list of
gpointer
A
GSList
.The data is owned by the caller of the function. data
-
Type:
gpointer
The data for the new element.
The argument can be NULL
.The data is owned by the caller of the function. func
-
Type:
GCompareFunc
The function to compare elements in the list. It should return a number > 0 if the first parameter comes after the second parameter in the sort order.