gint afdal_list_index AfDalList list,
gpointer  key
 

Returns current index inside the given AfDalList for the given object indexed by key.

Gets the position of the element containing the given key (starting from 0).

Parameters:
list An AfDalList.
key The key to look up.
Returns:
the index of the element containing the key, or -1 if the key is not found.