diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2009-10-07 13:41:53 -0300 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-08 21:17:18 -0500 |
commit | a2876f595bb9661806f577cc3c0f9789975b18df (patch) | |
tree | a0a0ba957ef802ea619251a95e314272100e3be7 /monitor.c | |
parent | af4ce882d530d4aa9ed26de3423a36e4a156d0a5 (diff) | |
download | qemu-a2876f595bb9661806f577cc3c0f9789975b18df.zip qemu-a2876f595bb9661806f577cc3c0f9789975b18df.tar.gz qemu-a2876f595bb9661806f577cc3c0f9789975b18df.tar.bz2 |
monitor: Add user_print() to mon_cmd_t
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 <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |