mirror of
https://github.com/qemu/qemu.git
synced 2025-08-14 11:43:46 +00:00

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>
33 lines
744 B
C
33 lines
744 B
C
/*
|
|
* libqos PCI bindings for PC
|
|
*
|
|
* Copyright IBM, Corp. 2012-2013
|
|
*
|
|
* Authors:
|
|
* Anthony Liguori <aliguori@us.ibm.com>
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
* See the COPYING file in the top-level directory.
|
|
*/
|
|
|
|
#ifndef LIBQOS_PCI_PC_H
|
|
#define LIBQOS_PCI_PC_H
|
|
|
|
#include "libqos/pci.h"
|
|
#include "libqos/malloc.h"
|
|
|
|
/* 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
|