qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC] docs: Add writing-qmp-commands.txt


From: Luiz Capitulino
Subject: Re: [Qemu-devel] [RFC] docs: Add writing-qmp-commands.txt
Date: Fri, 4 Nov 2011 15:20:13 -0200

On Fri, 4 Nov 2011 14:03:47 +0000
Stefan Hajnoczi <address@hidden> wrote:

> 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().

Good catch. That was my first version (and I did get an abort() there),
but forgot to fix it in the doc.

Thanks.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]