[Top][All Lists]

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

[Qemu-commits] [COMMIT a2876f5] monitor: Add user_print() to mon_cmd_t

From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT a2876f5] monitor: Add user_print() to mon_cmd_t
Date: Fri, 09 Oct 2009 02:22:00 -0000

From: Luiz Capitulino <address@hidden>

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.

Patchworks-ID: 35339
Signed-off-by: Luiz Capitulino <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

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);

reply via email to

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