mirror of https://github.com/xemu-project/xemu.git
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
|
@ -41,7 +41,7 @@
|
|||
|
||||
bool qdev_hotplug = 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)
|
||||
{
|
||||
|
|
|
@ -387,6 +387,7 @@ Object *qdev_get_machine(void);
|
|||
void qdev_set_parent_bus(DeviceState *dev, BusState *bus);
|
||||
|
||||
extern bool qdev_hotplug;
|
||||
extern bool qdev_hot_removed;
|
||||
|
||||
char *qdev_get_dev_path(DeviceState *dev);
|
||||
|
||||
|
|
Loading…
Reference in New Issue