aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/utils/iterator.h
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-11-30 08:32:23 +0000
committerJan Hutter <jhutter@hsr.ch>2005-11-30 08:32:23 +0000
commitd440fe6d0bf4cbe34ef69f3f4245ec2c685e6fde (patch)
tree7ab7bc2cb390b2d999c5fe3c87343895982ac394 /Source/charon/utils/iterator.h
parentf890d8fe62b2f3bbf560a6ed2f532da2aab9c4dd (diff)
downloadstrongswan-d440fe6d0bf4cbe34ef69f3f4245ec2c685e6fde.tar.bz2
strongswan-d440fe6d0bf4cbe34ef69f3f4245ec2c685e6fde.tar.xz
- message encryption verification fully changed
Diffstat (limited to 'Source/charon/utils/iterator.h')
-rw-r--r--Source/charon/utils/iterator.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/charon/utils/iterator.h b/Source/charon/utils/iterator.h
index b27f3e788..f0e66a093 100644
--- a/Source/charon/utils/iterator.h
+++ b/Source/charon/utils/iterator.h
@@ -75,6 +75,21 @@ struct iterator_t {
* @param[in] item value to insert in list
*/
void (*insert_after) (iterator_t *this, void *item);
+
+ /**
+ * @brief Replace the current item at current iterator position.
+ *
+ * The iterator position is not changed after replacing.
+ *
+ * @param this calling iterator
+ * @param[out]old_item old value will be written here(can be NULL)
+ * @param[in] new_item new value
+ *
+ * @return
+ * - SUCCESS
+ * - FAILED if iterator is on an invalid position
+ */
+ status_t (*replace) (iterator_t *this, void **old_item, void *new_item);
/**
* @brief removes an element from list at the given iterator position.