[libvirt] [PATCH 0/9] conf: Clean up XPath context handling

Peter Krempa posted 9 patches 4 years, 7 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/cover.1568636165.git.pkrempa@redhat.com
src/conf/checkpoint_conf.c       |  17 ++--
src/conf/domain_conf.c           | 131 ++++++++++++-------------------
src/conf/domain_conf.h           |   1 +
src/conf/interface_conf.c        |  16 +---
src/conf/network_conf.c          |  52 +++++-------
src/conf/node_device_conf.c      |  16 +---
src/conf/nwfilter_conf.c         |  18 ++---
src/conf/secret_conf.c           |  40 ++++------
src/conf/secret_conf.h           |   2 +
src/conf/snapshot_conf.c         |  21 ++---
src/conf/storage_conf.c          |  54 ++++---------
src/conf/virnetworkportdef.c     |   5 +-
src/conf/virnwfilterbindingdef.c |   5 +-
src/conf/virnwfilterbindingobj.c |   5 +-
src/libvirt_private.syms         |   1 +
src/qemu/qemu_capabilities.c     |   4 +-
src/util/virxml.c                |  20 ++++-
src/util/virxml.h                |   3 +
src/vbox/vbox_snapshot_conf.c    |  17 ++--
src/vz/vz_sdk.c                  |   6 +-
20 files changed, 166 insertions(+), 268 deletions(-)
[libvirt] [PATCH 0/9] conf: Clean up XPath context handling
Posted by Peter Krempa 4 years, 7 months ago
Refactor allocation and deallocation of the XPath context to have
slightly less messy code.

Peter Krempa (9):
  util: xml: Add wrapper for xmlXPathNewContext
  conf: network: Use VIR_AUTOPTR in virNetworkDefUpdateSection
  conf: Refactor resource cleanup in virDomainDeviceDefParse
  conf: Use automatic pointers for xmlXPathContext
  conf: Use VIR_AUTOPTR for xmlDoc and xmlXPath objects
  conf: domain: Register VIR_AUTOPTR function for virDomainDef
  conf: domain: Refactor cleanup in virDomainDefParseNode
  conf: secret: Register VIR_AUTOPTR function for virSecretDef
  conf: secret: Refactor cleanup in secretXMLParseNode

 src/conf/checkpoint_conf.c       |  17 ++--
 src/conf/domain_conf.c           | 131 ++++++++++++-------------------
 src/conf/domain_conf.h           |   1 +
 src/conf/interface_conf.c        |  16 +---
 src/conf/network_conf.c          |  52 +++++-------
 src/conf/node_device_conf.c      |  16 +---
 src/conf/nwfilter_conf.c         |  18 ++---
 src/conf/secret_conf.c           |  40 ++++------
 src/conf/secret_conf.h           |   2 +
 src/conf/snapshot_conf.c         |  21 ++---
 src/conf/storage_conf.c          |  54 ++++---------
 src/conf/virnetworkportdef.c     |   5 +-
 src/conf/virnwfilterbindingdef.c |   5 +-
 src/conf/virnwfilterbindingobj.c |   5 +-
 src/libvirt_private.syms         |   1 +
 src/qemu/qemu_capabilities.c     |   4 +-
 src/util/virxml.c                |  20 ++++-
 src/util/virxml.h                |   3 +
 src/vbox/vbox_snapshot_conf.c    |  17 ++--
 src/vz/vz_sdk.c                  |   6 +-
 20 files changed, 166 insertions(+), 268 deletions(-)

-- 
2.21.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list