summaryrefslogtreecommitdiffstats
path: root/tests/libqos/libqos-pc.c
diff options
context:
space:
mode:
authorPaolo Bonzini2018-11-29 12:37:04 +0100
committerPaolo Bonzini2019-03-07 17:28:07 +0100
commiteb5937bad691ed18a401079a0604aa11fea0ecdd (patch)
treea26310ca140c15230c51cceeebc538f7f55b7888 /tests/libqos/libqos-pc.c
parenttests/libqos: rename qpci_init_pc and qpci_init_spapr functions (diff)
downloadqemu-eb5937bad691ed18a401079a0604aa11fea0ecdd.tar.gz
qemu-eb5937bad691ed18a401079a0604aa11fea0ecdd.tar.xz
qemu-eb5937bad691ed18a401079a0604aa11fea0ecdd.zip
tests/libqos: embed allocators instead of malloc-ing them separately
qgraph will embed these objects instead of allocating them in a separate object. Expose a new API "generic_alloc_init" and "generic_alloc_destroy" for that, and rename the existing API with s/init/new/ and s/uninit/free/. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/libqos/libqos-pc.c')
-rw-r--r--tests/libqos/libqos-pc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/libqos/libqos-pc.c b/tests/libqos/libqos-pc.c
index 293f9b6fe6..d04abc548b 100644
--- a/tests/libqos/libqos-pc.c
+++ b/tests/libqos/libqos-pc.c
@@ -4,8 +4,7 @@
#include "libqos/pci-pc.h"
static QOSOps qos_ops = {
- .init_allocator = pc_alloc_init_flags,
- .uninit_allocator = pc_alloc_uninit,
+ .alloc_init = pc_alloc_init,
.qpci_new = qpci_new_pc,
.qpci_free = qpci_free_pc,
.shutdown = qtest_pc_shutdown,