]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virlog: Introduce virLogParseOutputs
authorErik Skultety <eskultet@redhat.com>
Wed, 5 Oct 2016 14:29:15 +0000 (16:29 +0200)
committerErik Skultety <eskultet@redhat.com>
Mon, 10 Oct 2016 06:27:25 +0000 (08:27 +0200)
commit4b266c180b9bc6ec4641a4242e4009cfd8ceb21b
treefddf5b8eaaf5eb0eb953ff74f23c5d2cbea104c6
parent77a45f2ff03ebd0a7af46f9a13e627aadb4012a0
virlog: Introduce virLogParseOutputs

Another abstraction added on the top of parsing a single logging output. This
method takes and parses the whole set of outputs, adding each single output
that has already been parsed into a caller-provided array. If the user-supplied
string contained duplicate outputs, only the last occurrence is taken into
account (all the others are removed from the list), so we silently avoid
duplicate logs.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
src/libvirt_private.syms
src/util/virlog.c
src/util/virlog.h