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