[Qemu-devel] [PATCH 3/5] PCI: Convert pci_info() to QObject

2010-01-20 Thread Luiz Capitulino
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. IMPORTANT: support for printing PCI bridge information and its devices is NOT part of this commit, it's going to

Re: [Qemu-devel] [PATCH 3/5] PCI: Convert pci_info() to QObject

2010-01-19 Thread Luiz Capitulino
On Mon, 18 Jan 2010 18:16:21 +0100 Markus Armbruster arm...@redhat.com wrote: +static QObject *pci_get_dev_class(const PCIDevice *dev) +{ +int class; +const char *str = ; +const pci_class_desc *desc; + +class = pci_get_word(dev-config + PCI_CLASS_DEVICE); desc

Re: [Qemu-devel] [PATCH 3/5] PCI: Convert pci_info() to QObject

2010-01-19 Thread Markus Armbruster
Luiz Capitulino lcapitul...@redhat.com writes: On Mon, 18 Jan 2010 18:16:21 +0100 Markus Armbruster arm...@redhat.com wrote: [...] +/** + * do_pci_info(): PCI buses and devices information + * + * The returned QObject is a QList of all buses. Each bus is + * represented by a QDict,

Re: [Qemu-devel] [PATCH 3/5] PCI: Convert pci_info() to QObject

2010-01-18 Thread Markus Armbruster
Luiz Capitulino lcapitul...@redhat.com writes: 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. IMPORTANT: support for printing PCI bridge information and

[Qemu-devel] [PATCH 3/5] PCI: Convert pci_info() to QObject

2010-01-08 Thread Luiz Capitulino
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. IMPORTANT: support for printing PCI bridge information and its devices is NOT part of this commit, it's going to

[Qemu-devel] [PATCH 3/5] PCI: Convert pci_info() to QObject

2010-01-05 Thread Luiz Capitulino
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. IMPORTANT: support for printing PCI bridge information and its devices is NOT part of this commit, it's going to