summary refs log tree commit diff stats
path: root/qga/commands-win32.c
diff options
context:
space:
mode:
authorDaniel Xu <dxu@dxuuu.xyz>2023-03-22 18:19:27 -0600
committerKonstantin Kostiuk <kkostiuk@redhat.com>2023-05-04 09:12:48 +0000
commit810f677ab86e649d449233b435197552024b016d (patch)
tree7c708199a9ccca2e279be46df67b217335adaddf /qga/commands-win32.c
parent9c5ccc52abe3977be53e42af84a6e590b3e1db19 (diff)
downloadfocaccia-qemu-810f677ab86e649d449233b435197552024b016d.tar.gz
focaccia-qemu-810f677ab86e649d449233b435197552024b016d.zip
qga: Add `merged` variant to GuestExecCaptureOutputMode
Currently, any captured output (via `capture-output`) is segregated into
separate GuestExecStatus fields (`out-data` and `err-data`). This means
that downstream consumers have no way to reassemble the captured data
back into the original stream.

This is relevant for chatty and semi-interactive (ie. read only) CLI
tools.  Such tools may deliberately interleave stdout and stderr for
visual effect. If segregated, the output becomes harder to visually
understand.

This commit adds a new enum variant to the GuestExecCaptureOutputMode
qapi to merge the output streams such that consumers can have a pristine
view of the original command output.

Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Diffstat (limited to 'qga/commands-win32.c')
0 files changed, 0 insertions, 0 deletions