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

[libvirt] [PATCH 0/2] consistent use of _LAST enum markers



This patch series will make it harder to add an enum value
while forgetting to translate that enum to or from an
appropriate string value.  It also alters the public API
so that users don't get _LAST enum values unless they ask
for them, since such values are markers that might change
over time rather than an official unchanging API value.

Eric Blake (2):
  API: make declaration of _LAST enum values conditional
  maint: enforce use of _LAST marker

 cfg.mk                       |   12 +++-
 daemon/libvirtd.h            |    8 +-
 include/libvirt/libvirt.h.in |  186 ++++++++++++++++++++++++++++++++++++-----
 python/generator.py          |    3 +-
 src/conf/domain_conf.c       |    2 +-
 src/conf/domain_conf.h       |    3 +-
 src/internal.h               |    4 +
 src/qemu/qemu_monitor_json.c |    9 +-
 src/remote/remote_protocol.x |    3 +-
 src/util/virtypedparam.c     |    2 +-
 tests/cputest.c              |    3 +-
 tools/virsh.c                |    9 ++
 12 files changed, 207 insertions(+), 37 deletions(-)

-- 
1.7.7.5


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