summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarcel Apfelbaum <marcel.a@redhat.com>2014-03-05 19:30:46 +0200
committerAndreas Färber <afaerber@suse.de>2014-03-12 20:13:02 +0100
commit261747f176f6f2d88f8268aaebfdd1a1afe887e2 (patch)
treea54e23a2a5275e64c894ca64cba4c054f6dad4bc /include
parent36d20cb2b39311869b061e1669cb55ccbf0af759 (diff)
downloadqemu-261747f176f6f2d88f8268aaebfdd1a1afe887e2.tar.gz
vl: Use MachineClass instead of global QEMUMachine list
The machine registration flow is refactored to use the QOM functionality. Instead of linking the machines into a list, each machine has a type and the types can be traversed in the QOM way. Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/hw/boards.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/boards.h b/include/hw/boards.h
index 1259010517..f9c035f33f 100644
--- a/include/hw/boards.h
+++ b/include/hw/boards.h
@@ -51,6 +51,7 @@ struct QEMUMachine {
const char *hw_version;
};
+#define TYPE_MACHINE_SUFFIX "-machine"
int qemu_register_machine(QEMUMachine *m);
QEMUMachine *find_default_machine(void);