[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v7 1/4] monitor/hmp: add support for flag argument with value
From: |
Eric Blake |
Subject: |
Re: [PATCH v7 1/4] monitor/hmp: add support for flag argument with value |
Date: |
Fri, 29 Oct 2021 14:51:33 -0500 |
User-agent: |
NeoMutt/20211022 |
On Thu, Oct 21, 2021 at 12:01:32PM +0200, Stefan Reiter wrote:
> Adds support for the "-xV" parameter type, where "-x" denotes a flag
> name and the "V" suffix indicates that this flag is supposed to take an
> arbitrary string parameter.
>
> These parameters are always optional, the entry in the qdict will be
> omitted if the flag is not given.
>
> Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
> ---
[so my late v6 reply doesn't get lost...]
> +++ b/monitor/monitor-internal.h
> @@ -63,7 +63,8 @@
> * '.' other form of optional type (for 'i' and 'l')
> * 'b' boolean
> * user mode accepts "on" or "off"
> - * '-' optional parameter (eg. '-f')
> + * '-' optional parameter (eg. '-f'); if followed by an 'V', it
s/an/a/
Reviewed-by: Eric Blake <eblake@redhat.com>
> + * specifies an optional string param (e.g. '-fV' allows '-f
> foo')
> *
> */
>
> --
> 2.30.2
>
>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
- [PATCH v7 0/4] VNC-related HMP/QMP fixes, Stefan Reiter, 2021/10/21
- [PATCH v7 1/4] monitor/hmp: add support for flag argument with value, Stefan Reiter, 2021/10/21
- [PATCH v7 4/4] qapi/monitor: only allow 'keep' SetPasswordAction for VNC and deprecate, Stefan Reiter, 2021/10/21
- [PATCH v7 3/4] qapi/monitor: allow VNC display id in set/expire_password, Stefan Reiter, 2021/10/21
- [PATCH v7 2/4] qapi/monitor: refactor set/expire_password with enums, Stefan Reiter, 2021/10/21
- Re: [PATCH v7 0/4] VNC-related HMP/QMP fixes, Markus Armbruster, 2021/10/21