hw/pci: made pci_bus_num a PCIBusClass method
commit602141d9974d726063907851528c89d617730156
authorMarcel Apfelbaum <marcel.a@redhat.com>
Tue, 2 Jun 2015 11:22:58 +0000 (2 14:22 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 3 Jun 2015 16:19:16 +0000 (3 18:19 +0200)
tree98d94feb225a49f61cf3b87b43f91a1eea308381
parentce6a28ee057da3e4a587dada369e33a8486b0066
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>
hw/pci/pci.c
include/hw/pci/pci_bus.h