diff options
author | Martin Willi <martin@strongswan.org> | 2006-05-29 11:04:09 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-05-29 11:04:09 +0000 |
commit | 4c59264d9b73d8eb2b29189cacd9ff3b60e2ec13 (patch) | |
tree | b28869402fa090d5f52b4ace4ef6fb5db0a3d234 /src/libstrongswan/utils/iterator.h | |
parent | b83200569ef6b72aafb9c3ab2ab18c15044d7805 (diff) | |
download | strongswan-4c59264d9b73d8eb2b29189cacd9ff3b60e2ec13.tar.bz2 strongswan-4c59264d9b73d8eb2b29189cacd9ff3b60e2ec13.tar.xz |
- changed iterator->remove behavior
Diffstat (limited to 'src/libstrongswan/utils/iterator.h')
-rw-r--r-- | src/libstrongswan/utils/iterator.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstrongswan/utils/iterator.h b/src/libstrongswan/utils/iterator.h index 7cc22c24b..79e23ab3f 100644 --- a/src/libstrongswan/utils/iterator.h +++ b/src/libstrongswan/utils/iterator.h @@ -50,6 +50,7 @@ struct iterator_t { * @return number of list items */ int (*get_count) (iterator_t *this); + /** * @brief Iterate over all items. * @@ -125,10 +126,9 @@ struct iterator_t { /** * @brief Removes an element from list at the given iterator position. * - * The position of the iterator is set in the following order: + * The iterator is set the the following position: * - to the item before, if available - * - otherwise to the item after, if available - * - otherwise it gets reseted + * - it gets reseted, otherwise * * @param linked_list calling object * @return @@ -136,7 +136,7 @@ struct iterator_t { * - FAILED if iterator is on an invalid position */ status_t (*remove) (iterator_t *iterator); - + /** * @brief Resets the iterator position. * |