[libvirt] [dbus PATCH v2 0/9] Remove all enum->string and string->enum code

Katerina Koukiou kkoukiou at redhat.com
Fri May 4 08:38:26 UTC 2018


Changes from v1:
 * Added the three last patches

Katerina Koukiou (9):
  Abandon usage of all *TypeToString functions in domain.c
  Abandon usage of all *TypeToString functions in connect.c
  Abandon usage of all *TypeToString functions in network.c
  Change DomainEvent argument from string to unsigned int
  Change NetworkEvent argument from string to unsigned int
  Remove virtDBusUtilEnum{From,From}String functions
  Remove reason to string translation in virtDBusEventsDomainTrayChange
  Remove state to string translation in virtDBusDomainGetState
  Remove reason to string translation in virtDBusEventsDomainDiskChange

 data/org.libvirt.Connect.xml |   6 +-
 data/org.libvirt.Domain.xml  |  20 ++---
 data/org.libvirt.Network.xml |   6 +-
 src/connect.c                |  18 +---
 src/domain.c                 | 203 ++++---------------------------------------
 src/events.c                 |  72 ++-------------
 src/network.c                |  66 +-------------
 src/util.c                   |  27 ------
 src/util.h                   |  28 ------
 tests/libvirttest.py         |  32 +++++++
 tests/test_connect.py        |  24 +++--
 tests/test_domain.py         |  46 ++++++----
 tests/test_network.py        |  20 +++--
 13 files changed, 131 insertions(+), 437 deletions(-)

-- 
2.15.0




More information about the libvir-list mailing list