diff options
author | Marcel Apfelbaum <marcel.a@redhat.com> | 2015-06-02 14:22:58 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-06-03 18:19:16 +0200 |
commit | 602141d9974d726063907851528c89d617730156 (patch) | |
tree | 98d94feb225a49f61cf3b87b43f91a1eea308381 /include/hw/pci/pci_bus.h | |
parent | ce6a28ee057da3e4a587dada369e33a8486b0066 (diff) | |
download | qemu-602141d9974d726063907851528c89d617730156.zip |
hw/pci: made pci_bus_num a PCIBusClass method
Refactoring it as a method of PCIBusClass will allow
different implementations for subclasses.
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'include/hw/pci/pci_bus.h')
-rw-r--r-- | include/hw/pci/pci_bus.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/pci/pci_bus.h b/include/hw/pci/pci_bus.h index b5ba9c4a98..7b9939e346 100644 --- a/include/hw/pci/pci_bus.h +++ b/include/hw/pci/pci_bus.h @@ -14,6 +14,7 @@ typedef struct PCIBusClass { /*< public >*/ bool (*is_root)(PCIBus *bus); + int (*bus_num)(PCIBus *bus); } PCIBusClass; struct PCIBus { |