]> git.proxmox.com Git - mirror_qemu.git/commit - qga/commands.c
qga: Refactor guest-exec capture-output to take enum
authorDaniel Xu <dxu@dxuuu.xyz>
Thu, 23 Mar 2023 00:19:26 +0000 (18:19 -0600)
committerKonstantin Kostiuk <kkostiuk@redhat.com>
Thu, 4 May 2023 09:12:48 +0000 (09:12 +0000)
commit9c5ccc52abe3977be53e42af84a6e590b3e1db19
tree6a4b963a45d7375c02bee6bb9401155710071213
parent5a954e0221376e568b1419b6e120af0be83d78bb
qga: Refactor guest-exec capture-output to take enum

Previously capture-output was an optional boolean flag that either
captured all output or captured none. While this is OK in most cases, it
lacks flexibility for more advanced capture cases, such as wanting to
only capture stdout.

This commits refactors guest-exec qapi to take an enum for capture mode
instead while preserving backwards compatibility.

Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
qga/commands.c
qga/qapi-schema.json