xref: /openbmc/qemu/stubs/hotplug-stubs.c (revision 13b1e9667737132440f4d500c31cb69320c6b15a)
1*971febb8SPaolo Bonzini /*
2*971febb8SPaolo Bonzini  * Hotplug handler stubs
3*971febb8SPaolo Bonzini  *
4*971febb8SPaolo Bonzini  * Copyright (c) Red Hat
5*971febb8SPaolo Bonzini  *
6*971febb8SPaolo Bonzini  * Authors:
7*971febb8SPaolo Bonzini  *  Philippe Mathieu-Daudé <philmd@redhat.com>,
8*971febb8SPaolo Bonzini  *
9*971febb8SPaolo Bonzini  * SPDX-License-Identifier: GPL-2.0-or-later
10*971febb8SPaolo Bonzini  *
11*971febb8SPaolo Bonzini  * This work is licensed under the terms of the GNU GPL, version 2 or later.
12*971febb8SPaolo Bonzini  * See the COPYING file in the top-level directory.
13*971febb8SPaolo Bonzini  */
14*971febb8SPaolo Bonzini #include "qemu/osdep.h"
15*971febb8SPaolo Bonzini #include "hw/qdev-core.h"
16*971febb8SPaolo Bonzini 
qdev_get_hotplug_handler(DeviceState * dev)17*971febb8SPaolo Bonzini HotplugHandler *qdev_get_hotplug_handler(DeviceState *dev)
18*971febb8SPaolo Bonzini {
19*971febb8SPaolo Bonzini     return NULL;
20*971febb8SPaolo Bonzini }
21*971febb8SPaolo Bonzini 
hotplug_handler_pre_plug(HotplugHandler * plug_handler,DeviceState * plugged_dev,Error ** errp)22*971febb8SPaolo Bonzini void hotplug_handler_pre_plug(HotplugHandler *plug_handler,
23*971febb8SPaolo Bonzini                               DeviceState *plugged_dev,
24*971febb8SPaolo Bonzini                               Error **errp)
25*971febb8SPaolo Bonzini {
26*971febb8SPaolo Bonzini     g_assert_not_reached();
27*971febb8SPaolo Bonzini }
28*971febb8SPaolo Bonzini 
hotplug_handler_plug(HotplugHandler * plug_handler,DeviceState * plugged_dev,Error ** errp)29*971febb8SPaolo Bonzini void hotplug_handler_plug(HotplugHandler *plug_handler,
30*971febb8SPaolo Bonzini                           DeviceState *plugged_dev,
31*971febb8SPaolo Bonzini                           Error **errp)
32*971febb8SPaolo Bonzini {
33*971febb8SPaolo Bonzini     g_assert_not_reached();
34*971febb8SPaolo Bonzini }
35