diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2009-12-10 17:16:09 -0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-12 08:17:32 -0600 |
commit | 1c1d7bda2cd507aec72057a1c16094541add9dd6 (patch) | |
tree | efbfa41d81a263f54fd6fcd6cd768a23c9a4626c /sysemu.h | |
parent | bdae662c9436d0d7cc6c6ae4e28f891d2f16e208 (diff) |
PCI: Convert pci_device_hot_add() to QObject
Return a QDict with information about the just added device.
This commit should not change user output.
Please, note that this patch does not do error handling
conversion. In error conditions the handler still calls
monitor_printf().
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit 7a344f7ac7bb651d0556a933ed8060d3a9e5d949)
Diffstat (limited to 'sysemu.h')
-rw-r--r-- | sysemu.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -212,7 +212,8 @@ extern DriveInfo *drive_init(QemuOpts *arg, void *machine, int *fatal_error); DriveInfo *add_init_drive(const char *opts); /* pci-hotplug */ -void pci_device_hot_add(Monitor *mon, const QDict *qdict); +void pci_device_hot_add_print(Monitor *mon, const QObject *data); +void pci_device_hot_add(Monitor *mon, const QDict *qdict, QObject **ret_data); void drive_hot_add(Monitor *mon, const QDict *qdict); void pci_device_hot_remove(Monitor *mon, const char *pci_addr); void do_pci_device_hot_remove(Monitor *mon, const QDict *qdict, |