diff options
author | Emanuele Giuseppe Esposito <e.emanuelegiuseppe@gmail.com> | 2018-07-19 13:50:27 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-03-07 16:50:04 +0100 |
commit | 143e6db6fa4ecd2a85de740cc3754aeb86d1e802 (patch) | |
tree | 1c69142d63ac3924ea79347a586361c4cb95be53 /tests/libqos/pci-pc.h | |
parent | 34c977489dd85e3528b0e5c3a02157c834560efa (diff) |
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-pc.h')
-rw-r--r-- | tests/libqos/pci-pc.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/libqos/pci-pc.h b/tests/libqos/pci-pc.h index 491eeac756..5be68ba7de 100644 --- a/tests/libqos/pci-pc.h +++ b/tests/libqos/pci-pc.h @@ -16,7 +16,17 @@ #include "libqos/pci.h" #include "libqos/malloc.h" -QPCIBus *qpci_init_pc(QTestState *qts, QGuestAllocator *alloc); +/* qpci_pc_new(): + * @qts: The %QTestState for this PC machine + * @alloc: A previously initialized @alloc providing memory for @qts + * + * This function creates a new QPCIBusPC object, + * and properly initialize its fields. + * + * Returns a newly allocated QPCIBus. + */ +QPCIBus *qpci_new_pc(QTestState *qts, QGuestAllocator *alloc); + void qpci_free_pc(QPCIBus *bus); #endif |