qapi/monitor: refactor set/expire_password with enums
authorStefan Reiter <s.reiter@proxmox.com>
Fri, 25 Feb 2022 08:49:48 +0000 (09:49 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 2 Mar 2022 18:12:40 +0000 (18:12 +0000)
commit7277db9103bc82a79cdd5db633560d2638fbfc33
tree8719ddaa443bebcf0502e53f41fe4cf02a2b9b62
parent26fcd766179e8a27c4c6c702201bdb0fe60eb091
qapi/monitor: refactor set/expire_password with enums

'protocol' and 'connected' are better suited as enums than as strings,
make use of that. No functional change intended.

Suggested-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
[FE: update "Since: " from 6.2 to 7.0
     put 'keep' first in enum to ease use as a default]
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Message-Id: <20220225084949.35746-3-f.ebner@proxmox.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
monitor/hmp-cmds.c
monitor/qmp-cmds.c
qapi/ui.json