diff options
author | Emanuele Giuseppe Esposito | 2018-07-19 13:50:27 +0200 |
---|---|---|
committer | Paolo Bonzini | 2019-03-07 16:50:04 +0100 |
commit | 143e6db6fa4ecd2a85de740cc3754aeb86d1e802 (patch) | |
tree | 1c69142d63ac3924ea79347a586361c4cb95be53 /tests/libqos/pci-spapr.h | |
parent | tests/libqos: introduce virtio_start_device (diff) | |
download | qemu-143e6db6fa4ecd2a85de740cc3754aeb86d1e802.tar.gz qemu-143e6db6fa4ecd2a85de740cc3754aeb86d1e802.tar.xz qemu-143e6db6fa4ecd2a85de740cc3754aeb86d1e802.zip |
tests/libqos: rename qpci_init_pc and qpci_init_spapr functions
Rename qpci_init_pc in qpci_pc_new and qpci_init_spapr in qpci_spapr_new,
since these function actually allocate a new pci struct and initialize it
(compare to object_new and object_initialize).
Changed QOSOps field name from qpci_init to qpci_new.
Signed-off-by: Emanuele Giuseppe Esposito <e.emanuelegiuseppe@gmail.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/libqos/pci-spapr.h')
-rw-r--r-- | tests/libqos/pci-spapr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libqos/pci-spapr.h b/tests/libqos/pci-spapr.h index 387686dfc8..177e8c002c 100644 --- a/tests/libqos/pci-spapr.h +++ b/tests/libqos/pci-spapr.h @@ -11,7 +11,7 @@ #include "libqos/malloc.h" #include "libqos/pci.h" -QPCIBus *qpci_init_spapr(QTestState *qts, QGuestAllocator *alloc); +QPCIBus *qpci_new_spapr(QTestState *qts, QGuestAllocator *alloc); void qpci_free_spapr(QPCIBus *bus); #endif |