]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: alloc: Introduce virAppendElement helper
authorPeter Krempa <pkrempa@redhat.com>
Tue, 3 Aug 2021 12:11:23 +0000 (14:11 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 6 Aug 2021 06:53:25 +0000 (08:53 +0200)
commit51c82458476d82f6ec162e723203324aa4ca535b
treeea7d482e6c5a18334a122ee565c66a0c42d2269d
parent853fb577d86bcd318c7ac7232f6f34c8deb72467
util: alloc: Introduce virAppendElement helper

The new wrapper calls virInsertElementInternal with the appropriate
arguments without any checks which are unnecessary for appension. This
allows to have no return value.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/libvirt_private.syms
src/util/viralloc.c
src/util/viralloc.h