qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] QMP's success response
@ 2009-12-17 17:41 Luiz Capitulino
  2009-12-17 17:46 ` [Qemu-devel] " Daniel P. Berrange
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Luiz Capitulino @ 2009-12-17 17:41 UTC (permalink / raw)
  To: qemu-devel; +Cc: aliguori, armbru, avi


 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?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-12-17 19:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-17 17:41 [Qemu-devel] QMP's success response Luiz Capitulino
2009-12-17 17:46 ` [Qemu-devel] " Daniel P. Berrange
2009-12-17 18:32 ` [Qemu-devel] " Markus Armbruster
2009-12-17 19:09 ` Jamie Lokier
2009-12-17 19:19   ` Luiz Capitulino

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).