]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Allow using VIR_AUTOPTR for releasing virDomainPtr in virsh
authorPeter Krempa <pkrempa@redhat.com>
Mon, 9 Sep 2019 08:36:39 +0000 (10:36 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 19 Sep 2019 12:31:14 +0000 (14:31 +0200)
commit96143986caa2c74ccca12fe52340a189b0ef30aa
tree21d08121eb86123ac5ba88ab958548d3e42194ae
parent2c535e50f58469b66c5188709ce3b680d3718b64
virsh: Allow using VIR_AUTOPTR for releasing virDomainPtr in virsh

I opted to alias the 'virDomainType' to 'virshDomain' so that it's
obvious in all cases that this is a virsh-only construct. This is also
somewhat consistent with virsh's use of 'virshDomainFree' wrapper for
the freeing function which actually accepts NULL.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tools/virsh-util.h