E_MCL_ERROR_CODE list_remove(list_t *list, list_node_t *node)
Removes a node from the list.
E_MCL_ERROR_CODE list_initialize(list_t **list)
Initializes the list.
E_MCL_ERROR_CODE list_remove_with_content(list_t *list, list_node_t *node, list_item_destroy_callback callback)
Removes a node from the list and destroys the removed item with the provided callback function...
list_node_t * list_next(list_t *list)
Get the next node from the list.
void(* mcl_list_item_destroy_callback)(void **item)
mcl_list_compare_callback list_compare_callback
E_MCL_ERROR_CODE
MCL Error code definitions. Every function returning an error code uses this enum values...
void list_destroy_with_content(list_t **list, list_item_destroy_callback callback)
To destroy the list and its items with a given callback function.
List module interface file.
E_MCL_ERROR_CODE list_add(list_t *list, void *data)
Adds a new list item.
E_MCL_ERROR_CODE list_exist(list_t *list, const void *item_to_find, list_compare_callback compare_function, void **item)
Searches item_to_find in the list.
void list_destroy(list_t **list)
To destroy the list.
E_MCL_ERROR_CODE(* mcl_list_compare_callback)(void *reference_item, const void *item_to_compare)
void list_reset(list_t *list)
Reset the current node to head node.
mcl_list_item_destroy_callback list_item_destroy_callback
mcl_list_node_t list_node_t