Patchwork [07/18] monitor: Add user_print() to mon_cmd_t

login
register
mail settings
Submitter Luiz Capitulino
Date Oct. 7, 2009, 4:32 p.m.
Message ID <1254933135-21888-8-git-send-email-lcapitulino@redhat.com>
Download mbox | patch
Permalink /patch/35321/
State Superseded
Headers show

Comments

Luiz Capitulino - Oct. 7, 2009, 4:32 p.m.
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 <lcapitulino@redhat.com>
---
 monitor.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

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