qemu-e2k/monitor
Daniel P. Berrangé f9429c6790 monitor: introduce HumanReadableText and HMP support
This provides a foundation on which to convert simple HMP commands to
use QMP. The QMP implementation will generate formatted text targeted
for human consumption, returning it in the HumanReadableText data type.

The HMP command handler will simply print out the formatted string
within the HumanReadableText data type. Since this will be an entirely
formulaic action in the case of HMP commands taking no arguments, a
custom command handler is provided.

Thus instead of registering a 'cmd' callback for the HMP command, a
'cmd_info_hrt' callback is provided, which will simply be a pointer
to the QMP implementation.

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2021-11-02 15:55:13 +00:00
..
hmp-cmds.c monitor: make hmp_handle_error return a boolean 2021-11-02 15:55:13 +00:00
hmp.c monitor: introduce HumanReadableText and HMP support 2021-11-02 15:55:13 +00:00
meson.build meson: add spice_headers dependency. 2020-10-15 11:14:40 +02:00
misc.c monitor: introduce HumanReadableText and HMP support 2021-11-02 15:55:13 +00:00
monitor-internal.h monitor: introduce HumanReadableText and HMP support 2021-11-02 15:55:13 +00:00
monitor.c monitor: Rate-limit MEMORY_DEVICE_SIZE_CHANGE qapi events per device 2021-10-02 08:43:21 +02:00
qmp-cmds-control.c qapi: Implement deprecated-output=hide for QMP introspection 2021-03-19 16:05:11 +01:00
qmp-cmds.c arch_init.h: Don't include arch_init.h unnecessarily 2021-08-26 17:02:00 +01:00
qmp.c monitor/qmp: fix race on CHR_EVENT_CLOSED without OOB 2021-05-12 17:29:11 +02:00
trace-events docs: fix references to docs/devel/tracing.rst 2021-06-02 06:51:09 +02:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00