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
gpointerA
GSList.The data is owned by the caller of the function. data-
Type:
gpointerThe data for the new element.
The argument can be NULL.The data is owned by the caller of the function. func-
Type:
GCompareFuncThe 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.