Re: [Qemu-devel] QMP's success response

2009-12-17 Thread Luiz Capitulino
On Thu, 17 Dec 2009 19:09:18 + Jamie Lokier wrote: > Luiz Capitulino wrote: > > > > 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.

Re: [Qemu-devel] QMP's success response

2009-12-17 Thread Jamie Lokier
Luiz Capitulino wrote: > > 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

Re: [Qemu-devel] QMP's success response

2009-12-17 Thread Markus Armbruster
Luiz Capitulino 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 pro

[Qemu-devel] QMP's success response

2009-12-17 Thread Luiz Capitulino
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