提交 cbf8ebaa 编写于 作者: P Peter Krempa

qemu_agent: Add support for appending arrays to commands

Add support for array elements for agent commands just like 64d5e815 did for
monitor commands
上级 13f26081
......@@ -1209,6 +1209,10 @@ qemuAgentMakeCommand(const char *cmdname,
case 'n': {
ret = virJSONValueObjectAppendNull(jargs, key);
} break;
case 'a': {
virJSONValuePtr val = va_arg(args, virJSONValuePtr);
ret = virJSONValueObjectAppend(jargs, key, val);
} break;
default:
virReportError(VIR_ERR_INTERNAL_ERROR,
_("unsupported data type '%c' for arg '%s'"), type, key - 2);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册