]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virlog: Convert virLogOutputs to a list of pointers to outputs
authorErik Skultety <eskultet@redhat.com>
Thu, 17 Mar 2016 13:52:57 +0000 (14:52 +0100)
committerErik Skultety <eskultet@redhat.com>
Mon, 4 Jul 2016 14:43:28 +0000 (16:43 +0200)
commit354cd26d6a66990f34808d4ba5f16a6c4af3c387
tree8b13e6bc568b8820b885f8a0a6fdb7271b0d6b91
parent9dbd728adaa5135592671adb3ea2b36d25222926
virlog: Convert virLogOutputs to a list of pointers to outputs

Right now, we define outputs one after another. However, the correct flow
should be to define a set of outputs as a whole unit. Therefore each output
should be first created, placed into an array/list and the list will be
defined. Output creation should be a separate operation, so an output will be
returned by a reference. From that perspective, it makes perfect sense to
only store pointers to actual outputs.

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