[PATCH 0/2] Tri-state bool enum cleanups

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We have been using a few different enum types with the same values:
DEFAULT
ENABLED = "on" / "yes"
DISABLED = "off" / "no"

Replace these with just two enums with rather unimaginative names:
virDomainYesNo and virDomainOnOff

Ján Tomko (2):
  Introduce virDomainYesNo enum type
  Introduce virDomainOnOff enum

 src/conf/domain_conf.c   | 194 +++++++++++++++++------------------------------
 src/conf/domain_conf.h   | 127 +++++--------------------------
 src/libvirt_private.syms |  26 +------
 src/libxl/libxl_conf.c   |   6 +-
 src/lxc/lxc_container.c  |   4 +-
 src/lxc/lxc_native.c     |   2 +-
 src/qemu/qemu_command.c  |  80 +++++++++----------
 src/qemu/qemu_driver.c   |   4 +-
 src/qemu/qemu_process.c  |   2 +-
 src/vbox/vbox_tmpl.c     |  22 +++---
 src/xenxs/xen_sxpr.c     |  20 ++---
 src/xenxs/xen_xm.c       |  20 ++---
 12 files changed, 174 insertions(+), 333 deletions(-)

-- 
1.8.5.5

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux