From a0753941e115fa450b3f750427a3755535cfe2fb Mon Sep 17 00:00:00 2001 From: Jan Hutter Date: Tue, 29 Nov 2005 08:54:48 +0000 Subject: - changed creation of iterator - chanded all clone calls --- Source/charon/utils/linked_list.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Source/charon/utils/linked_list.h') 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); }; -- cgit v1.2.3