]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: string: Introduce macro for automatic string lists
authorPeter Krempa <pkrempa@redhat.com>
Tue, 26 Feb 2019 15:10:17 +0000 (16:10 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 4 Mar 2019 12:04:20 +0000 (13:04 +0100)
commitdaefda165b28b399478137c75b5466f865c65be5
tree1269b0b04ce52cf28ca709ea5661d1f1d5b09fc2
parent24c4fab8ecc6551aa6b36be9197a33f28afc0278
util: string: Introduce macro for automatic string lists

Similar to VIR_AUTOPTR, VIR_AUTOSTRINGLIST defines a list of strings
which will be freed if the pointer is leaving scope.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/libvirt_private.syms
src/util/virstring.c
src/util/virstring.h