]> git.proxmox.com Git - mirror_qemu.git/commit - include/hw/qdev-core.h
qdev: Provide qdev_get_bus_hotplug_handler()
authorDavid Hildenbrand <david@redhat.com>
Thu, 28 Feb 2019 12:28:49 +0000 (13:28 +0100)
committerEduardo Habkost <ehabkost@redhat.com>
Wed, 6 Mar 2019 14:51:08 +0000 (11:51 -0300)
commit14405c274e86e993e90198a49eecab3ca0ded8db
treee00ebb90e75491783bf4f815667cb53d0a673271
parent17cc0128da3d4a211731a79853ea81c7159b26af
qdev: Provide qdev_get_bus_hotplug_handler()

Let's use a wrapper instead of looking it up manually. This function can
than be reused when we explicitly want to have the bus hotplug handler
(e.g. when the bus hotplug handler was overwritten by the machine
hotplug handler).

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20190228122849.4296-4-david@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/core/qdev.c
include/hw/qdev-core.h