Almost identical XML parsing code for either strings or files was copied
15 times. Since it was needed on two other places for parsing CPU XML
strings with correct error reporting, I decided to factor the parsing code
out to xml.c and used this one implementation in all other places.

Jiri Denemark (3):
  Introduce XML parsing utility functions
  Use common XML parsing functions
  Fix error reporting when parsing CPU XML strings

 src/conf/domain_conf.c      |  130 ++++++---------------------------------
 src/conf/interface_conf.c   |   93 ++++------------------------
 src/conf/network_conf.c     |   93 ++++------------------------
 src/conf/node_device_conf.c |   60 +-----------------
 src/conf/secret_conf.c      |   56 ++---------------
 src/conf/storage_conf.c     |  110 +++-------------------------------
 src/cpu/cpu.c               |   11 ++-
 src/util/xml.c              |  142 ++++++++++++++++++++++++++++++++++++++++++-
 src/util/xml.h              |   19 ++++++
 9 files changed, 231 insertions(+), 483 deletions(-)

--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to