diff options
author | Jan Hutter <jhutter@hsr.ch> | 2005-11-29 08:54:48 +0000 |
---|---|---|
committer | Jan Hutter <jhutter@hsr.ch> | 2005-11-29 08:54:48 +0000 |
commit | a0753941e115fa450b3f750427a3755535cfe2fb (patch) | |
tree | 1a2da1490e442385d40abcb435cd2fc07e64c3ae /Source/charon/utils/linked_list.h | |
parent | c6ec246d0dd0028bb206a0261b200c197ab51714 (diff) | |
download | strongswan-a0753941e115fa450b3f750427a3755535cfe2fb.tar.bz2 strongswan-a0753941e115fa450b3f750427a3755535cfe2fb.tar.xz |
- changed creation of iterator
- chanded all clone calls
Diffstat (limited to 'Source/charon/utils/linked_list.h')
-rw-r--r-- | Source/charon/utils/linked_list.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/charon/utils/linked_list.h b/Source/charon/utils/linked_list.h index e1b08511a..ee07ce487 100644 --- a/Source/charon/utils/linked_list.h +++ b/Source/charon/utils/linked_list.h @@ -51,13 +51,13 @@ struct linked_list_t { /** * @brief Creates a iterator for the given list. * - * @warning Created iterator has to get destroyed by the caller. + * @warning Created iterator_t object has to get destroyed by the caller. * * @param linked_list calling object - * @param[out] iterator place where the iterator is written * @param[in] forward iterator direction (TRUE: front to end) + * @return new iterator_t object */ - void (*create_iterator) (linked_list_t *linked_list, iterator_t **iterator, bool forward); + iterator_t * (*create_iterator) (linked_list_t *linked_list, bool forward); /** * @brief Inserts a new item at the beginning of the list. @@ -128,8 +128,6 @@ struct linked_list_t { * memory leaks! * * @param linked_list calling object - * @return - * - SUCCESS */ void (*destroy) (linked_list_t *linked_list); }; |