diff options
author | Martin Willi <martin@strongswan.org> | 2005-11-24 12:06:23 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2005-11-24 12:06:23 +0000 |
commit | 12c3e4c860e8d7d76b52dd02a9ca9af77551c2e5 (patch) | |
tree | 62f5fdd1fcf632939e413cea4568244686f36ae4 /Source/charon/utils/linked_list.h | |
parent | 4ed9966524c41a006a755695e8d4fdb54daee33c (diff) | |
download | strongswan-12c3e4c860e8d7d76b52dd02a9ca9af77551c2e5.tar.bz2 strongswan-12c3e4c860e8d7d76b52dd02a9ca9af77551c2e5.tar.xz |
- moved remove-method to iterator
Diffstat (limited to 'Source/charon/utils/linked_list.h')
-rw-r--r-- | Source/charon/utils/linked_list.h | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/Source/charon/utils/linked_list.h b/Source/charon/utils/linked_list.h index f5a87cd14..71fdfd45e 100644 --- a/Source/charon/utils/linked_list.h +++ b/Source/charon/utils/linked_list.h @@ -76,6 +76,19 @@ struct linked_list_iterator_t { status_t (*insert_after) (linked_list_iterator_t *this, void *item); /** + * @brief removes an element from list at the given iterator position. + * + * The position of the iterator is set in the following order: + * - to the item before, if available + * - otherwise to the item after, if available + * - otherwise it gets reseted + * + * @param linked_list calling object + * @param iterator iterator holding the position of the element to remove + * @return SUCCESS if succeeded, FAILED otherwise + */ + status_t (*remove) (linked_list_iterator_t *iterator); + /** * @brief Resets a linked_list_iterator object * * @param this calling object @@ -136,20 +149,6 @@ struct linked_list_t { status_t (*insert_first) (linked_list_t *linked_list, void *item); /** - * @brief removes an element from list at the given iterator position - * - * The position of the iterator is set in the following order: - * - to the item before, if available - * - otherwise to the item after, if available - * - otherwise it gets reseted - * - * @param linked_list calling object - * @param iterator iterator holding the position of the element to remove - * @return SUCCESS if succeeded, FAILED otherwise - */ - status_t (*remove) (linked_list_t *linked_list, linked_list_iterator_t *iterator); - - /** * @brief removes the first item in the list and returns its value * * @param linked_list calling object |