[libvirt PATCH v6 0/8] Refactor XML parsing boilerplate code

Peter Krempa pkrempa at redhat.com
Fri Apr 16 11:51:59 UTC 2021


On Fri, Apr 16, 2021 at 11:41:44 +0200, Tim Wiederhake wrote:

[...]

> Tim Wiederhake (8):
>   virxml: Add virXMLPropTristateBool
>   virxml: Add virXMLPropTristateSwitch
>   virxml: Add virXMLPropInt
>   virxml: Add virXMLPropUInt
>   virxml: Add virXMLPropEnum

I've rebased these on top of the virxml.h formatting fix and pushed them
now. Additionally I've converted few types to appropriate enum values to
see how compilers will like that in respect to virXMLPropEnum:

https://listman.redhat.com/archives/libvir-list/2021-April/msg00679.html

>   virNetworkForwardNatDefParseXML: Use virXMLProp*
>   virDomainIOThreadIDDefParseXML: Use virXMLProp*
>   virCPUDefParseXML: Use virXMLProp*
> 
>  src/conf/cpu_conf.c      |  14 +--
>  src/conf/domain_conf.c   |  14 +--
>  src/conf/network_conf.c  |  16 +--
>  src/libvirt_private.syms |   5 +
>  src/util/virxml.c        | 249 +++++++++++++++++++++++++++++++++++++++
>  src/util/virxml.h        |  42 +++++++
>  6 files changed, 305 insertions(+), 35 deletions(-)
> 
> -- 
> 2.26.2
> 
> 




More information about the libvir-list mailing list