]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Fix @mode member of _virDomainTimerDef struct
authorMichal Privoznik <mprivozn@redhat.com>
Sun, 23 Jan 2022 21:08:03 +0000 (22:08 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 26 Jan 2022 09:49:24 +0000 (10:49 +0100)
commit82e902ddcc592a4ae68c2f78030ec4251395914d
tree55cb59c1baa1bab176c19e0655743ae3bab6f4db
parent10eb597137dc27d2aaa9cc72d4a445dd34cf09f1
conf: Fix @mode member of _virDomainTimerDef struct

The @mode member of the _virDomainTimerDef struct stores
values of the virDomainTimerModeType enum, or -1 for the
default value (when user provided no value in XML).

This is needlessly complicated. Introduce new value to the enum
which reflects the default state.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libxl/xen_common.c