All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Luiz Capitulino <lcapitulino@redhat.com>
Cc: aliguori@linux.vnet.ibm.com, qemu-devel@nongnu.org, avi@redhat.com
Subject: Re: [Qemu-devel] QMP's success response
Date: Thu, 17 Dec 2009 19:32:30 +0100	[thread overview]
Message-ID: <m3aaxhladd.fsf@crossbow.pond.sub.org> (raw)
In-Reply-To: <20091217154147.22845395@doriath> (Luiz Capitulino's message of "Thu, 17 Dec 2009 15:41:47 -0200")

Luiz Capitulino <lcapitulino@redhat.com> 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.

  parent reply	other threads:[~2009-12-17 18:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Markus Armbruster [this message]
2009-12-17 19:09 ` [Qemu-devel] " Jamie Lokier
2009-12-17 19:19   ` Luiz Capitulino

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3aaxhladd.fsf@crossbow.pond.sub.org \
    --to=armbru@redhat.com \
    --cc=aliguori@linux.vnet.ibm.com \
    --cc=avi@redhat.com \
    --cc=lcapitulino@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.