aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wmem
diff options
context:
space:
mode:
Diffstat (limited to 'epan/wmem')
-rw-r--r--epan/wmem/wmem_list.c6
-rw-r--r--epan/wmem/wmem_list.h4
2 files changed, 10 insertions, 0 deletions
diff --git a/epan/wmem/wmem_list.c b/epan/wmem/wmem_list.c
index f22b817889..df9f07ceee 100644
--- a/epan/wmem/wmem_list.c
+++ b/epan/wmem/wmem_list.c
@@ -91,6 +91,12 @@ wmem_list_remove(wmem_list_t *list, void *data)
return;
}
+ wmem_list_remove_frame(list, frame);
+}
+
+void
+wmem_list_remove_frame(wmem_list_t *list, wmem_list_frame_t *frame)
+{
if (frame->prev) {
frame->prev->next = frame->next;
}
diff --git a/epan/wmem/wmem_list.h b/epan/wmem/wmem_list.h
index cb4cecf2f2..65bd0073db 100644
--- a/epan/wmem/wmem_list.h
+++ b/epan/wmem/wmem_list.h
@@ -80,6 +80,10 @@ wmem_list_remove(wmem_list_t *list, void *data);
WS_DLL_PUBLIC
void
+wmem_list_remove_frame(wmem_list_t *list, wmem_list_frame_t *frame);
+
+WS_DLL_PUBLIC
+void
wmem_list_prepend(wmem_list_t *list, void *data);
WS_DLL_PUBLIC