aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/linked_list.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrongswan/utils/linked_list.h')
-rw-r--r--src/libstrongswan/utils/linked_list.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstrongswan/utils/linked_list.h b/src/libstrongswan/utils/linked_list.h
index cb3d53e58..293ca8661 100644
--- a/src/libstrongswan/utils/linked_list.h
+++ b/src/libstrongswan/utils/linked_list.h
@@ -78,6 +78,14 @@ struct linked_list_t {
void (*reset_enumerator)(linked_list_t *this, enumerator_t *enumerator);
/**
+ * Checks if there are more elements following after the enumerator's
+ * current position.
+ *
+ * @param enumerator enumerator to check
+ */
+ bool (*has_more)(linked_list_t *this, enumerator_t *enumerator);
+
+ /**
* Inserts a new item at the beginning of the list.
*
* @param item item value to insert in list