summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorMarcel Apfelbaum <marcel@redhat.com>2015-01-06 15:29:13 +0200
committerAlexander Graf <agraf@suse.de>2015-01-07 16:16:28 +0100
commit759bf45d81a892c359fa1a3848c36dcd74b6a42b (patch)
treeae076114b4aa9bc6adb1fb4625acc811560635f0 /hw
parentc760dbb9dc4dfceeb5d4ae07876b10da58d4c630 (diff)
downloadhqemu-759bf45d81a892c359fa1a3848c36dcd74b6a42b.zip
hqemu-759bf45d81a892c359fa1a3848c36dcd74b6a42b.tar.gz
hw/machine: added machine_usb wrapper
Following QOM convention, object properties should not be accessed directly. Signed-off-by: Marcel Apfelbaum <marcel@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw')
-rw-r--r--hw/core/machine.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/core/machine.c b/hw/core/machine.c
index a0ae5f9..fbd91be 100644
--- a/hw/core/machine.c
+++ b/hw/core/machine.c
@@ -398,6 +398,11 @@ static void machine_finalize(Object *obj)
g_free(ms->firmware);
}
+bool machine_usb(MachineState *machine)
+{
+ return machine->usb;
+}
+
static const TypeInfo machine_info = {
.name = TYPE_MACHINE,
.parent = TYPE_OBJECT,
OpenPOWER on IntegriCloud