summaryrefslogtreecommitdiff
path: root/tests/qemusecuritytest.h
diff options
context:
space:
mode:
authorPeter Krempa <pkrempa@redhat.com>2021-02-05 09:53:36 +0100
committerPeter Krempa <pkrempa@redhat.com>2021-02-11 17:05:33 +0100
commit67c345cb97e8da58d5bffe21b9a247fd4341ecb1 (patch)
tree62930f34cc0518c042514b70edfa09c72e9dedd2 /tests/qemusecuritytest.h
parent92ca31469540cade3816733b37c5f2177d9570d2 (diff)
downloadlibvirt-67c345cb97e8da58d5bffe21b9a247fd4341ecb1.tar.gz
qemusecuritytest: Store 'notRestored' files in a hash table
The validation code looks whether certain paths are in the 'notRestored' list. For the purpose of lookup it's better to use a hash table rather than a string list. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Diffstat (limited to 'tests/qemusecuritytest.h')
-rw-r--r--tests/qemusecuritytest.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/qemusecuritytest.h b/tests/qemusecuritytest.h
index cc3918ddf5..696cfb4b63 100644
--- a/tests/qemusecuritytest.h
+++ b/tests/qemusecuritytest.h
@@ -20,6 +20,8 @@
#define ENVVAR "LIBVIRT_QEMU_SECURITY_TEST"
-extern int checkPaths(const char **paths);
+#include "internal.h"
+
+extern int checkPaths(GHashTable *paths);
extern void freePaths(void);