From: Stefan Hajnoczi <stefanha@gmail.com>
To: Luiz Capitulino <lcapitulino@redhat.com>
Cc: Supriya Kannery <supriyak@linux.vnet.ibm.com>,
Markus Armbruster <armbru@redhat.com>,
qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com
Subject: Re: [Qemu-devel] [RFC] docs: Add writing-qmp-commands.txt
Date: Fri, 4 Nov 2011 14:03:47 +0000 [thread overview]
Message-ID: <CAJSP0QV3roXH1dfs9e2WhfMXa_t2=YLPVxicBG8fbSCntHcNWg@mail.gmail.com> (raw)
In-Reply-To: <20111103163603.5123e0c9@doriath>
On Thu, Nov 3, 2011 at 6:36 PM, Luiz Capitulino <lcapitulino@redhat.com> wrote:
> +Here's the implementation of the 'hello-world' HMP command:
> +
> +void hmp_hello_world(Monitor *mon, const QDict *qdict)
> +{
> + Error *errp = NULL;
> + const char *message = qdict_get_str(qdict, "message");
Since message is optional this should be qdict_get_try_str().
Stefan
next prev parent reply other threads:[~2011-11-04 14:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-03 18:36 [Qemu-devel] [RFC] docs: Add writing-qmp-commands.txt Luiz Capitulino
2011-11-03 20:50 ` Alon Levy
2011-11-04 16:45 ` Luiz Capitulino
2011-11-03 21:25 ` Michael Roth
2011-11-04 17:18 ` Luiz Capitulino
2011-11-04 14:03 ` Stefan Hajnoczi [this message]
2011-11-04 17:20 ` 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='CAJSP0QV3roXH1dfs9e2WhfMXa_t2=YLPVxicBG8fbSCntHcNWg@mail.gmail.com' \
--to=stefanha@gmail.com \
--cc=armbru@redhat.com \
--cc=lcapitulino@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=supriyak@linux.vnet.ibm.com \
/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 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).