Add a linked list constructor taking items from a vararg list
This commit is contained in:
@@ -302,9 +302,18 @@ linked_list_t *linked_list_create(void);
|
||||
/**
|
||||
* Creates a linked list from an enumerator.
|
||||
*
|
||||
* @enumerator enumerator over void*, gets destroyed
|
||||
* @return linked_list_t object, containing enumerated values
|
||||
* @param enumerator enumerator over void*, gets destroyed
|
||||
* @return linked_list_t object, containing enumerated values
|
||||
*/
|
||||
linked_list_t *linked_list_create_from_enumerator(enumerator_t *enumerator);
|
||||
|
||||
/**
|
||||
* Creates a linked list from a NULL terminated vararg list of items.
|
||||
*
|
||||
* @param first first item
|
||||
* @param ... subsequent items, terminated by NULL
|
||||
* @return linked_list_t object, containing passed items
|
||||
*/
|
||||
linked_list_t *linked_list_create_with_items(void *first, ...);
|
||||
|
||||
#endif /** LINKED_LIST_H_ @}*/
|
||||
|
||||
Reference in New Issue
Block a user