mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 19:14:58 -06:00
qdev: Export qdev_hot_removed
I need to move qdev_unplug to qdev-monitor in the following patch, and it needs access to this variable. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
This commit is contained in:
parent
9bed84c191
commit
21def24a5a
2 changed files with 2 additions and 1 deletions
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
bool qdev_hotplug = false;
|
bool qdev_hotplug = false;
|
||||||
static bool qdev_hot_added = false;
|
static bool qdev_hot_added = false;
|
||||||
static bool qdev_hot_removed = false;
|
bool qdev_hot_removed = false;
|
||||||
|
|
||||||
const VMStateDescription *qdev_get_vmsd(DeviceState *dev)
|
const VMStateDescription *qdev_get_vmsd(DeviceState *dev)
|
||||||
{
|
{
|
||||||
|
|
|
@ -387,6 +387,7 @@ Object *qdev_get_machine(void);
|
||||||
void qdev_set_parent_bus(DeviceState *dev, BusState *bus);
|
void qdev_set_parent_bus(DeviceState *dev, BusState *bus);
|
||||||
|
|
||||||
extern bool qdev_hotplug;
|
extern bool qdev_hotplug;
|
||||||
|
extern bool qdev_hot_removed;
|
||||||
|
|
||||||
char *qdev_get_dev_path(DeviceState *dev);
|
char *qdev_get_dev_path(DeviceState *dev);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue