]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Add functions to simplify bool->virTristate(Bool|Switch) assignment
authorPeter Krempa <pkrempa@redhat.com>
Thu, 5 Oct 2017 11:06:41 +0000 (13:06 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 6 Oct 2017 06:47:30 +0000 (08:47 +0200)
commitd868366fe3eed36ab1c9280991b0789e5e857126
treedaa5799a0f3ce23cd99db08073159270c3153de8
parent8ffbc1f7009973273edb379c986d75f780fafadf
util: Add functions to simplify bool->virTristate(Bool|Switch) assignment

virTristateBoolFromBool and virTristateSwitchFromBool convert a boolean
to the correct enum value.
src/libvirt_private.syms
src/util/virutil.c
src/util/virutil.h