[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] QMP's success response
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] QMP's success response |
Date: |
Thu, 17 Dec 2009 19:32:30 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Luiz Capitulino <address@hidden> writes:
> Hi there,
>
> Currently, when a regular command doesn't have any data to output,
> QMP will emit:
>
> { "return": "OK" }
>
> I thought this was a good idea because it has a clear meaning. Silly me,
> this is optimized for humans, but for machines it introduces the problem
> that such commands can't be changed to return values.
>
> I'm not sure this is will ever happen, but to stay safe a better way
> would be to return an empty dict, like this:
>
> { "return": {} }
>
> Which can be read as 'command succeeded, but didn't return any data'.
>
> As the release is not done yet we still can change it, is anyone against?
I'm very much in favor of it.