mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
qemuDomainSetLifecycleAction: Add a note about argument range-check
The public API wrapper range-checks the arguments. Save the next reader the hassle of looking it up. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
ae6045ca84
commit
a640237b53
@ -19652,6 +19652,8 @@ qemuDomainSetLifecycleAction(virDomainPtr dom,
|
||||
virDomainDef *persistentDef = NULL;
|
||||
int ret = -1;
|
||||
|
||||
/* note that 'action' and 'type' are range-checked in the public API wrapper */
|
||||
|
||||
virCheckFlags(VIR_DOMAIN_AFFECT_LIVE |
|
||||
VIR_DOMAIN_AFFECT_CONFIG, -1);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user