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

2011-11-04 Thread Luiz Capitulino
On Fri, 4 Nov 2011 14:03:47 + Stefan Hajnoczi wrote: > On Thu, Nov 3, 2011 at 6:36 PM, Luiz Capitulino > wrote: > > +Here's the implementation of the 'hello-world' HMP command: > > + > > +void hmp_hello_world(Monitor *mon, const QDict *qdict) > > +{ > > +    Error *errp = NULL; > > +    con

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

2011-11-04 Thread Luiz Capitulino
On Thu, 03 Nov 2011 16:25:58 -0500 Michael Roth wrote: > On 11/03/2011 01:36 PM, Luiz Capitulino wrote: > > Explains how to write QMP commands using the QAPI. > > > > TODO: > > - write "returning lists" chapter > > - review it > > > > Signed-off-by: Luiz Capitulino > > --- > > > > This

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

2011-11-04 Thread Luiz Capitulino
On Thu, 3 Nov 2011 22:50:29 +0200 Alon Levy wrote: > On Thu, Nov 03, 2011 at 04:36:03PM -0200, Luiz Capitulino wrote: > > Explains how to write QMP commands using the QAPI. > > > > TODO: > > - write "returning lists" chapter > > - review it > > > > Signed-off-by: Luiz Capitulino > > --

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

2011-11-04 Thread Stefan Hajnoczi
On Thu, Nov 3, 2011 at 6:36 PM, Luiz Capitulino 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 option

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

2011-11-03 Thread Michael Roth
On 11/03/2011 01:36 PM, Luiz Capitulino wrote: Explains how to write QMP commands using the QAPI. TODO: - write "returning lists" chapter - review it Signed-off-by: Luiz Capitulino --- This is incomplete, but I figured I should send it anyway as there are people who want to add new Q

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

2011-11-03 Thread Alon Levy
On Thu, Nov 03, 2011 at 04:36:03PM -0200, Luiz Capitulino wrote: > Explains how to write QMP commands using the QAPI. > > TODO: > - write "returning lists" chapter > - review it > > Signed-off-by: Luiz Capitulino > --- > > This is incomplete, but I figured I should send it anyway as the

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

2011-11-03 Thread Luiz Capitulino
Explains how to write QMP commands using the QAPI. TODO: - write "returning lists" chapter - review it Signed-off-by: Luiz Capitulino --- This is incomplete, but I figured I should send it anyway as there are people who want to add new QMP commands but are still using the old interface.