]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Fix @track member of _virDomainTimerDef struct
authorMichal Privoznik <mprivozn@redhat.com>
Sun, 23 Jan 2022 20:56:54 +0000 (21:56 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 26 Jan 2022 09:49:22 +0000 (10:49 +0100)
commit10eb597137dc27d2aaa9cc72d4a445dd34cf09f1
tree3beccdc7967387c6c2cff6e6a0a3faa31e56475a
parent96d72b461f1e448a9df1d15fc48330f0c75ee65d
conf: Fix @track member of _virDomainTimerDef struct

The @track member of the _virDomainTimerDef struct stores
values of the virDomainTimerTrackType 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
src/qemu/qemu_command.c
src/qemu/qemu_validate.c