aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/utils/iterator.h
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-02-09 11:56:24 +0000
committerMartin Willi <martin@strongswan.org>2006-02-09 11:56:24 +0000
commitdfa6e086a0e70523e2713df79dd76a4b1efbecac (patch)
tree78bc81fafbffc6c863eec6ebdff78a14c42e4cdc /Source/charon/utils/iterator.h
parent93df94acade3b53a8110b5a9b3c60c8e358eb85f (diff)
downloadstrongswan-dfa6e086a0e70523e2713df79dd76a4b1efbecac.tar.bz2
strongswan-dfa6e086a0e70523e2713df79dd76a4b1efbecac.tar.xz
- fixed memleaks
Diffstat (limited to 'Source/charon/utils/iterator.h')
-rw-r--r--Source/charon/utils/iterator.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/charon/utils/iterator.h b/Source/charon/utils/iterator.h
index 69ee828f4..de81db8e9 100644
--- a/Source/charon/utils/iterator.h
+++ b/Source/charon/utils/iterator.h
@@ -44,6 +44,19 @@ typedef struct iterator_t iterator_t;
struct iterator_t {
/**
+ * @brief Iterate over all items.
+ *
+ * The easy way to iterate over items.
+ *
+ * @param this calling object
+ * @param[out] value item
+ * @return
+ * - TRUE, if more elements are avaiable,
+ * - FALSE otherwise
+ */
+ bool (*iterate) (iterator_t *this, void** value);
+
+ /**
* @brief Moves to the next element, if available.
*
* A newly created iterator_t object doesn't point to any item.