[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC] docs: Add writing-qmp-commands.txt
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [RFC] docs: Add writing-qmp-commands.txt |
Date: |
Fri, 4 Nov 2011 14:03:47 +0000 |
On Thu, Nov 3, 2011 at 6:36 PM, Luiz Capitulino <address@hidden> 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