]> git.proxmox.com Git - qemu.git/commitdiff
libqemustub: sysbus_get_default() stub
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 5 Dec 2012 16:49:09 +0000 (14:49 -0200)
committerAndreas Färber <afaerber@suse.de>
Tue, 8 Jan 2013 20:03:43 +0000 (21:03 +0100)
The stub will be used on cases where sysbus.c is not compiled in (e.g.
*-user).

Note that code that uses NULL as the bus with qdev{_try,}_create()
implicitly uses sysbus_get_default() as the bus, and will still require
sysbus.c to be compiled in.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
stubs/Makefile.objs
stubs/sysbus.c [new file with mode: 0644]

index ca2197e6fb16f5a483e5aaef1a926a15efe922e6..7672c69a292848f0295a8fe89c48a438e59bbc1b 100644 (file)
@@ -7,4 +7,5 @@ stub-obj-y += get-fd.o
 stub-obj-y += set-fd-handler.o
 stub-obj-y += reset.o
 stub-obj-y += vmstate.o
+stub-obj-y += sysbus.o
 stub-obj-$(CONFIG_WIN32) += fd-register.o
diff --git a/stubs/sysbus.c b/stubs/sysbus.c
new file mode 100644 (file)
index 0000000..e134965
--- /dev/null
@@ -0,0 +1,6 @@
+#include "hw/qdev-core.h"
+
+BusState *sysbus_get_default(void)
+{
+    return NULL;
+}