On 08/04/2015 11:29 PM, Markus Armbruster wrote: > Eric Blake <[email protected]> writes: > >> On 08/04/2015 03:18 AM, Markus Armbruster wrote: >>> Reproducer: with >>> >>> { 'command': 'user_def_cmd4', 'returns': { 'a': 'int' } } >>> >>> added to qapi-schema-test.json, qapi-commands.py dies when it tries to >>> generate the command handler function >>>
>> +++ w/tests/qapi-schema/command-int.json
>> @@ -1,3 +1,4 @@
>> # we reject collisions between commands and types
>> { 'command': 'int', 'data': { 'character': 'str' },
>> - 'returns': { 'value': 'int' } }
>> + 'returns': 'Foo' }
>> +{ 'struct': 'Foo', 'data': { 'value': 'int' } }
>
> Okay to simply drop the 'returns' instead?
>
Sure, that works too.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
