Function

GLibSListsort_with_data

Declaration

GSList*
g_slist_sort_with_data (
  GSList* list,
  GCompareDataFunc compare_func,
  gpointer user_data
)

Description

Like g_slist_sort(), but the sort function accepts a user data argument.

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.
compare_func

Type: GCompareDataFunc

Comparison function.

user_data

Type: gpointer

Data to pass to comparison function.

The argument can be NULL.
The data is owned by the caller of the function.

Return value

Type: A list of gpointer

New head of the list.

The data is owned by the called function.