Received: from eggs.gnu.org ([208.118.235.92]:58273) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tm3Df-0007VM-Ht for qemu-devel@nongnu.org; Fri, 21 Dec 2012 09:05:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tm3Ah-0006Mz-3o for qemu-devel@nongnu.org; Fri, 21 Dec 2012 09:02:07 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tm3Ag-0006Ms-Sd for qemu-devel@nongnu.org; Fri, 21 Dec 2012 09:01:55 -0500 From: Markus Armbruster References: <1355912230-25132-1-git-send-email-xiawenc@linux.vnet.ibm.com> <1355912230-25132-2-git-send-email-xiawenc@linux.vnet.ibm.com> Date: Fri, 21 Dec 2012 15:01:01 +0100 In-Reply-To: <1355912230-25132-2-git-send-email-xiawenc@linux.vnet.ibm.com> (Wenchao Xia's message of "Wed, 19 Dec 2012 18:17:08 +0800") Message-ID: <87r4mj33oi.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 1/3] HMP: add QDict to info callback handler List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wenchao Xia Cc: kwolf@redhat.com, aliguori@us.ibm.com, stefanha@gmail.com, qemu-devel@nongnu.org, lcapitulino@redhat.com, pbonzini@redhat.com Wenchao Xia writes: > This patch change all info call back function to take > additional QDict * parameter, which allow those command > take parameter. [...] > diff --git a/monitor.c b/monitor.c > index c0e32d6..797680f 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); > union { > - void (*info)(Monitor *mon); > + void (*info)(Monitor *mon, const QDict *qdict); > void (*cmd)(Monitor *mon, const QDict *qdict); > int (*cmd_new)(Monitor *mon, const QDict *params, QObject **ret_data); > int (*cmd_async)(Monitor *mon, const QDict *params, > @@ -824,7 +824,7 @@ static void do_info(Monitor *mon, const QDict *qdict) > goto help; > } > > - cmd->mhandler.info(mon); > + cmd->mhandler.info(mon, NULL); > return; > For now, the new argument is NULL, not an empty dictionary. Could be mentioned in the commit message. Not worth a respin. [...]