summaryrefslogtreecommitdiffstats
path: root/include/hw/qdev-core.h
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2014-09-26 09:28:21 +0000
committerAndreas Färber <afaerber@suse.de>2014-10-15 05:03:13 +0200
commit014176f914ab8e41a88225e8f26569ef0e0bf223 (patch)
treef235d260f9730c6a7d007d33bdaa9575deba8370 /include/hw/qdev-core.h
parent181a2c63236966b3c80eef131bac33a355a492da (diff)
downloadhqemu-014176f914ab8e41a88225e8f26569ef0e0bf223.zip
hqemu-014176f914ab8e41a88225e8f26569ef0e0bf223.tar.gz
qdev: Add simple/generic unplug callback for HotplugHandler
It will be used in shallow conversion from legacy hotplug mechanism and eventually replace all the uses of old mechanism DeviceClass::unplug = qdev_simple_unplug_cb() Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include/hw/qdev-core.h')
-rw-r--r--include/hw/qdev-core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/qdev-core.h b/include/hw/qdev-core.h
index 48a96d2..ba812c5 100644
--- a/include/hw/qdev-core.h
+++ b/include/hw/qdev-core.h
@@ -265,6 +265,8 @@ void qdev_set_legacy_instance_id(DeviceState *dev, int alias_id,
int required_for_version);
void qdev_unplug(DeviceState *dev, Error **errp);
int qdev_simple_unplug_cb(DeviceState *dev);
+void qdev_simple_device_unplug_cb(HotplugHandler *hotplug_dev,
+ DeviceState *dev, Error **errp);
void qdev_machine_creation_done(void);
bool qdev_machine_modified(void);
OpenPOWER on IntegriCloud