Add qemu 2.4.0
[kvmfornfv.git] / qemu / tests / qapi-schema / alternate-good.json
diff --git a/qemu/tests/qapi-schema/alternate-good.json b/qemu/tests/qapi-schema/alternate-good.json
new file mode 100644 (file)
index 0000000..3371770
--- /dev/null
@@ -0,0 +1,9 @@
+# Working example of alternate
+{ 'struct': 'Data',
+  'data': { '*number': 'int', '*name': 'str' } }
+{ 'enum': 'Enum',
+  'data': [ 'hello', 'world' ] }
+{ 'alternate': 'Alt',
+  'data': { 'value': 'int',
+            'string': 'Enum',
+            'struct': 'Data' } }