qemu: capabilities: Introduce QEMU_CAPS_DEVICE_JSON

The flag will be used to switch use of JSON arguments for -device once
qemu will support it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2021-09-24 19:02:28 +02:00
parent 1a97c8f50e
commit 7c48fa2f58
2 changed files with 2 additions and 0 deletions

View File

@ -649,6 +649,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
/* 415 */
"chardev.json", /* QEMU_CAPS_CHARDEV_JSON */
"device.json", /* QEMU_CAPS_DEVICE_JSON */
);

View File

@ -629,6 +629,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
/* 415 */
QEMU_CAPS_CHARDEV_JSON, /* -chardev accepts JSON */
QEMU_CAPS_DEVICE_JSON, /* -device accepts JSON */
QEMU_CAPS_LAST /* this must always be the last item */
} virQEMUCapsFlags;