Added a function to reset the enumerator of a linked list.

This commit is contained in:
Tobias Brunner
2011-07-06 09:43:45 +02:00
parent 572abc6cbd
commit 67405ce808
2 changed files with 14 additions and 0 deletions
+7
View File
@@ -84,6 +84,13 @@ struct linked_list_t {
*/
enumerator_t* (*create_enumerator)(linked_list_t *this);
/**
* Resets the enumerator's current position to the beginning of the list.
*
* @param enumerator enumerator to reset
*/
void (*reset_enumerator)(linked_list_t *this, enumerator_t *enumerator);
/**
* Inserts a new item at the beginning of the list.
*