<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/tests/qapi-schema/flat-union-reverse-define.json, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/tests/qapi-schema/flat-union-reverse-define.json?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/tests/qapi-schema/flat-union-reverse-define.json?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2015-10-15T06:39:07+00:00</updated>
<entry>
<title>qapi: Drop redundant flat-union-reverse-define test</title>
<updated>2015-10-15T06:39:07+00:00</updated>
<author>
<name>Eric Blake</name>
</author>
<published>2015-10-13T04:22:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=70478cef837e86b1cff08073153081ce480e0e6c'/>
<id>urn:sha1:70478cef837e86b1cff08073153081ce480e0e6c</id>
<content type='text'>
As of commit 8c3f8e77, we test compilation of forward references
for a struct base type (UserDefOne), flat union base type
(UserDefUnionBase), and flat union branch type
(UserDefFlatUnion2). The only remaining forward reference being
tested for parsing in flat-union-reverse-define was a forward
enum declaration.  Once we make sure that always compiles,
the smaller parse-only test is redundant and can be deleted.

Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
Message-Id: &lt;1444710158-8723-7-git-send-email-eblake@redhat.com&gt;
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>qapi: Use 'struct' instead of 'type' in schema</title>
<updated>2015-05-05T16:39:01+00:00</updated>
<author>
<name>Eric Blake</name>
</author>
<published>2015-05-04T15:05:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=895a2a80e0e054f0d5d3715aa93d10d15e49f9f7'/>
<id>urn:sha1:895a2a80e0e054f0d5d3715aa93d10d15e49f9f7</id>
<content type='text'>
Referring to "type" as both a meta-type (built-in, enum, union,
alternate, or struct) and a specific type (the name that the
schema uses for declaring structs) is confusing.  Do the bulk of
the conversion to "struct" in qapi schema, with a fairly
mechanical:

for f in `find -name '*.json'; do sed -i "s/'type'/'struct'/"; done

followed by manually filtering out the places where we have a
'type' embedded in 'data'.  Then tweak a couple of tests whose
output changes slightly due to longer lines.

I also verified that the generated files for QMP and QGA (such
as qmp-commands.h) are the same before and after, as assurance
that I didn't leave in any accidental member name changes.

Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>qapi script: support enum type as discriminator in union</title>
<updated>2014-03-11T13:07:42+00:00</updated>
<author>
<name>Wenchao Xia</name>
</author>
<published>2014-03-07T01:08:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=bceae7697ff1711675c26f715b945737bc6849ae'/>
<id>urn:sha1:bceae7697ff1711675c26f715b945737bc6849ae</id>
<content type='text'>
By default, any union will automatically generate a enum type as
"[UnionName]Kind" in C code, and it is duplicated when the discriminator
is specified as a pre-defined enum type in schema. After this patch,
the pre-defined enum type will be really used as the switch case
condition in generated C code, if discriminator is an enum field.

Signed-off-by: Wenchao Xia &lt;wenchaoqemu@gmail.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Luiz Capitulino &lt;lcapitulino@redhat.com&gt;
</content>
</entry>
</feed>
