PCI: Convert pci_info() to QObject
commit163c8a59f6f9c370b74a81856194757e3773b358
authorLuiz Capitulino <lcapitulino@redhat.com>
Thu, 21 Jan 2010 21:15:40 +0000 (21 19:15 -0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 26 Jan 2010 21:42:02 +0000 (26 15:42 -0600)
tree891521215f3e6f8be5f2ebc748597755a385e554
parentdf10ce6aa96ef6782250cec8ab53742144ed5c93
PCI: Convert pci_info() to QObject

The returned QObject is a QList of all buses. Each bus is
represented by a QDict, which has a key with a QList of all
PCI devices attached to it. Each device is represented by
a QDict.

As has happended to other complex conversions, it's hard to
split this commit as part of it are new functions which are
called by each other.

IMPORTANT: support for printing PCI bridge attached devices
is NOT part of this commit, it's going to be added by the
next commit, as it's untested.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pci.c
hw/pci.h
monitor.c