]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virconf: Introduce VIR_CONF_ULONG
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 9 Dec 2014 15:22:09 +0000 (16:22 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 15 Dec 2014 09:34:18 +0000 (10:34 +0100)
commitca4f9518b8d381f8f14e37dc4d0367d33d5f3737
treef422c4e53a4da3b161e607e40fc14e9669badbab
parentf81a70218081b68754280a6b71bbf48c2c1f4d6f
virconf: Introduce VIR_CONF_ULONG

https://bugzilla.redhat.com/show_bug.cgi?id=1160995

In our config files users are expected to pass several integer values
for different configuration knobs. However, majority of them expect a
nonnegative number and only a few of them accept a negative number too
(notably keepalive_interval in libvirtd.conf).
Therefore, a new type to config value is introduced: VIR_CONF_ULONG
that is set whenever an integer is positive or zero. With this
approach knobs accepting VIR_CONF_LONG should accept VIR_CONF_ULONG
too.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
daemon/libvirtd-config.c
src/locking/lock_daemon_config.c
src/locking/lock_driver_lockd.c
src/locking/lock_driver_sanlock.c
src/lxc/lxc_conf.c
src/qemu/qemu_conf.c
src/util/virconf.c
src/util/virconf.h
src/xenconfig/xen_common.c
tests/libvirtdconftest.c