Doubly Linked List Creation/Destruction Functions
Functions used to create, initialize and destroyEcore_DLists
.
More...Functions | |
EAPI Ecore_DList * | ecore_dlist_new () |
Creates and initialises a new doubly linked list. | |
EAPI int | ecore_dlist_init (Ecore_DList *list) |
Initialises a list to some sane starting values. | |
EAPI void | ecore_dlist_destroy (Ecore_DList *list) |
Frees a doubly linked list and all of its nodes. | |
EAPI int | ecore_dlist_free_cb_set (Ecore_DList *list, Ecore_Free_Cb free_func) |
Sets the function used for freeing data stored in a doubly linked list. |
Detailed Description
Functions used to create, initialize and destroyEcore_DLists
.
Function Documentation
EAPI void ecore_dlist_destroy | ( | Ecore_DList * | list | ) |
Frees a doubly linked list and all of its nodes.
- Parameters:
-
list The doubly linked list to be freed.
EAPI int ecore_dlist_free_cb_set | ( | Ecore_DList * | list, | |
Ecore_Free_Cb | free_func | |||
) |
Sets the function used for freeing data stored in a doubly linked list.
- Parameters:
-
list The doubly linked list that will use this function when nodes are destroyed. free_func The function that will free the key data
- Returns:
TRUE
on success,FALSE
on failure.
References ecore_list_free_cb_set().
EAPI int ecore_dlist_init | ( | Ecore_DList * | list | ) |
Initialises a list to some sane starting values.
- Parameters:
-
list The doubly linked list to initialise.
- Returns:
TRUE
if successful,FALSE
if an error occurs.
Referenced by ecore_dlist_append_list(), ecore_dlist_merge(), ecore_dlist_new(), and ecore_dlist_prepend_list().
EAPI Ecore_DList* ecore_dlist_new | ( | void | ) |
Creates and initialises a new doubly linked list.
- Returns:
- A new initialised doubly linked list on success,
NULL
on failure.
References ecore_dlist_init().