aboutsummaryrefslogtreecommitdiff
path: root/monitor.h
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2010-06-07 15:42:31 +0100
committerLuiz Capitulino <lcapitulino@redhat.com>2010-10-01 10:12:43 -0300
commit39eaab9ac2a82f5370758e8aeb8b7196f34fdabf (patch)
treea029d0fe781de3f145cfa9d9ec766ad6692e9a99 /monitor.h
parent212b6008686369b288a2b71e4f1b25f07d854763 (diff)
downloadqemu-39eaab9ac2a82f5370758e8aeb8b7196f34fdabf.zip
qemu-39eaab9ac2a82f5370758e8aeb8b7196f34fdabf.tar.gz
qemu-39eaab9ac2a82f5370758e8aeb8b7196f34fdabf.tar.bz2
Add option to turn on JSON pretty printing in monitor
Expaned '-mon' arg to allow a 'pretty=on' flag. This makes the monitor pretty print its replies to easy human debugging / reading Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'monitor.h')
-rw-r--r--monitor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/monitor.h b/monitor.h
index 38b22a4..f2122b5 100644
--- a/monitor.h
+++ b/monitor.h
@@ -14,6 +14,7 @@ extern Monitor *default_mon;
#define MONITOR_IS_DEFAULT 0x01
#define MONITOR_USE_READLINE 0x02
#define MONITOR_USE_CONTROL 0x04
+#define MONITOR_USE_PRETTY 0x08
/* flags for monitor commands */
#define MONITOR_CMD_ASYNC 0x0001