From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvZb4-0002Jj-9R for qemu-devel@nongnu.org; Wed, 07 Oct 2009 12:42:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvZaz-0002Hf-Tb for qemu-devel@nongnu.org; Wed, 07 Oct 2009 12:42:37 -0400 Received: from [199.232.76.173] (port=49980 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvZaz-0002HT-F7 for qemu-devel@nongnu.org; Wed, 07 Oct 2009 12:42:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11138) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MvZay-0005SH-Mj for qemu-devel@nongnu.org; Wed, 07 Oct 2009 12:42:33 -0400 From: Luiz Capitulino Date: Wed, 7 Oct 2009 13:41:53 -0300 Message-Id: <1254933724-22485-8-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1254933724-22485-1-git-send-email-lcapitulino@redhat.com> References: <1254933724-22485-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 07/18] monitor: Add user_print() to mon_cmd_t List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, avi@redhat.com This new struct member will store a pointer to a function that should be used to output data in the user protocol format. It will also serve as a flag to say if a given handler has already been converted to the new QObject style. Signed-off-by: Luiz Capitulino --- monitor.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/monitor.c b/monitor.c index 2bf82f3..b589d98 100644 --- a/monitor.c +++ b/monitor.c @@ -73,6 +73,7 @@ typedef struct mon_cmd_t { const char *args_type; const char *params; const char *help; + void (*user_print)(Monitor *mon, const QObject *data); union { void (*info)(Monitor *mon); void (*cmd)(Monitor *mon, const QDict *qdict); -- 1.6.5.rc2.17.gdbc1b