Support for JSON mode monitor

Initial support for the new QEMU monitor protocol  using JSON
as the data encoding format instead of plain text

* po/POTFILES.in: Add src/qemu/qemu_monitor_json.c
* src/qemu/qemu_conf.c, src/qemu/qemu_conf.h: Hack to turn on QMP
  mode. Replace with a version number check on >= 0.12 later
* src/qemu/qemu_monitor.c: Delegate to json monitor if enabled
* src/qemu/qemu_monitor_json.c, src/qemu/qemu_monitor_json.h: Add
  impl of QMP protocol
* src/Makefile.am: Add src/qemu/qemu_monitor_json.{c,h}
This commit is contained in:
Daniel P. Berrange
2009-11-03 13:59:18 -05:00
parent c5358c0e1f
commit 3a4f172fdd
10 changed files with 1829 additions and 50 deletions

View File

@@ -60,7 +60,7 @@ static int testCompareXMLToArgvFiles(const char *xml,
goto fail;
if (qemudBuildCommandLine(NULL, &driver,
vmdef, &monitor_chr, flags,
vmdef, &monitor_chr, 0, flags,
&argv, &qenv,
NULL, NULL, migrateFrom) < 0)
goto fail;