summaryrefslogtreecommitdiff
path: root/src/libvirt_private.syms
diff options
context:
space:
mode:
authorPeter Krempa <pkrempa@redhat.com>2020-10-26 15:30:10 +0100
committerPeter Krempa <pkrempa@redhat.com>2020-11-06 10:31:57 +0100
commit80f3af5fd866c39ae25833d016403fbd0ba11f1d (patch)
treec847a8a845abce8cb1790db52cf4f138872fa5ed /src/libvirt_private.syms
parent5f1b1da1b9ecc0fceba6d4ab20d75e95b23e7493 (diff)
downloadlibvirt-80f3af5fd866c39ae25833d016403fbd0ba11f1d.tar.gz
util: hash: Add delete-safe hash iterator
'virHashForEach' historically allowed deletion of the current element as 'virHashRemoveSet' didn't exist. To prevent us from having to deeply analyse all iterators add virHashForEachSafe which first gets a list of elements and iterates them outside of the hash table. This will allow replace the internals of the hash table with other implementation which don't allow such operation. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Reviewed-by: Matt Coleman <matt@datto.com>
Diffstat (limited to 'src/libvirt_private.syms')
-rw-r--r--src/libvirt_private.syms1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 157a97d4a9..e257f37316 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -2207,6 +2207,7 @@ virHashAtomicSteal;
virHashAtomicUpdate;
virHashEqual;
virHashForEach;
+virHashForEachSafe;
virHashForEachSorted;
virHashFree;
virHashGetItems;