Re: [Qemu-devel] [PATCH V4 1/4] HMP: add QDict to info callback handler

2013-01-10 Thread Wenchao Xia
于 2013-1-10 21:10, Luiz Capitulino 写道: On Thu, 10 Jan 2013 16:32:31 +0800 Wenchao Xia wrote: diff --git a/monitor.c b/monitor.c index 9cf419b..c7b3014 100644 --- a/monitor.c +++ b/monitor.c @@ -123,7 +123,7 @@ typedef struct mon_cmd_t { const char *help; void (*user_print)(Monitor

Re: [Qemu-devel] [PATCH V4 1/4] HMP: add QDict to info callback handler

2013-01-10 Thread Luiz Capitulino
On Thu, 10 Jan 2013 16:32:31 +0800 Wenchao Xia wrote: > diff --git a/monitor.c b/monitor.c > index 9cf419b..c7b3014 100644 > --- a/monitor.c > +++ b/monitor.c > @@ -123,7 +123,7 @@ typedef struct mon_cmd_t { > const char *help; > void (*user_print)(Monitor *mon, const QObject *data); >

[Qemu-devel] [PATCH V4 1/4] HMP: add QDict to info callback handler

2013-01-10 Thread Wenchao Xia
This patch change all info call back function to take additional QDict * parameter, which allow those command take parameter. Now it is set to NULL at default case. Signed-off-by: Wenchao Xia --- hmp.c | 36 ++-- hmp.h | 3