Re: [PATCH 15/17] virDomainInputDefParseXML: Switch to virXMLPropEnumDefault()

2022-05-24 Thread Boris Fiuczynski
On 5/23/22 3:08 PM, Michal Privoznik wrote: The virDomainInputDefParseXML() function uses old style of parsing XML (virXMLPropString + str2enum conversion). Use virXMLPropEnumDefault() which encapsulates those steps. virXMLPropEnum and virXMLPropEnumDefault Signed-off-by: Michal Privoznik --

Re: [PATCH 15/17] virDomainInputDefParseXML: Switch to virXMLPropEnumDefault()

2022-05-24 Thread Boris Fiuczynski
On 5/23/22 3:08 PM, Michal Privoznik wrote: diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 85aae73873..44ab79c1f0 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -1942,7 +1942,7 @@ void virDomainGraphicsDefFree(virDomainGraphicsDef *def) const char *vi

[PATCH 15/17] virDomainInputDefParseXML: Switch to virXMLPropEnumDefault()

2022-05-23 Thread Michal Privoznik
The virDomainInputDefParseXML() function uses old style of parsing XML (virXMLPropString + str2enum conversion). Use virXMLPropEnumDefault() which encapsulates those steps. Signed-off-by: Michal Privoznik --- src/conf/domain_audit.c | 2 +- src/conf/domain_conf.c | 86 +++

[PATCH 15/17] virDomainInputDefParseXML: Switch to virXMLPropEnumDefault()

2022-04-08 Thread Michal Privoznik
The virDomainInputDefParseXML() function uses old style of parsing XML (virXMLPropString + str2enum conversion). Use virXMLPropEnumDefault() which encapsulates those steps. Signed-off-by: Michal Privoznik --- src/conf/domain_audit.c | 2 +- src/conf/domain_conf.c | 86 +++