Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions include/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -252,32 +252,36 @@ void List_RemoveFirst(list_t* list);
void List_RemoveLast(list_t* list);

/**
* Removes an element of list
* @param list a pointer to a list_t
* @param identifier for the item to remove in the list.
* @return is a pointer that removes the item and returns no value.
*
* @param list
* @param item
*
* @warning This method does not return the items that were removed.
*/
void List_Remove(list_t* list, void* item);

/**
* Removes all elements of list.
* @param list a pointer to a list_t
*
*
* @warning This method does not return the items that were removed.
*
*/
void List_RemoveAll(list_t* list);

/**
* Unlinks an item of list. If a valid pointer is not found an error code may be given
* @param lists a pointer to a list_t
* @param identifier for the item to unlink in the list.
* @return is a pointer that unlinks the item and returns no value.
*
* @param list
* @param item
*
* @warning This method does not return the items that were unlinked.
*/
void List_UnlinkItem(list_t* list, void* item);

/**
*
*
* @param list pointer to list structure (object)
*
*Function: List_UnlinkFirst(list_t* list)
Expand Down