@@ -61,7 +61,7 @@ $ telnet localhost 4444
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
-{"QMP": {"version": {"qemu": "0.12.50", "package": ""}, "capabilities": []}}
+{"QMP": {"version": {"qemu": "0.12.50", "package": ""}, "capabilities": [], "warning": "QMP is unstable, it will change soon!"}}
{ "execute": "qmp_capabilities" }
{"return": {}}
{ "execute": "query-version" }
@@ -4384,7 +4384,8 @@ static QObject *get_qmp_greeting(void)
QObject *ver;
do_info_version(NULL, &ver);
- return qobject_from_jsonf("{'QMP':{'version': %p,'capabilities': []}}",ver);
+ return qobject_from_jsonf("{ 'QMP': { 'version': %p, 'capabilities': [], "
+ "'warning': 'QMP is unstable, it will change soon!' } }", ver);
}
/**
This commit add the following new key to QMP's greeting message: "warning": "QMP is unstable, it will change soon!" The goal is to go beyond document warnings with regard to QMP's current state. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> --- QMP/README | 2 +- monitor.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)