]> xenbits.xensource.com Git - libvirt.git/commit
virlog: Introduce Type{To,From}String for virLogDestination
authorErik Skultety <eskultet@redhat.com>
Tue, 15 Mar 2016 20:35:17 +0000 (21:35 +0100)
committerErik Skultety <eskultet@redhat.com>
Wed, 16 Mar 2016 13:24:15 +0000 (14:24 +0100)
commit034337fb8578d6f67455782b7a5ee67c67ff7000
treeb39de102263b28b7fa232fdb51ae3a2b16b91014
parent6bd9758e5832b2cf5dee34a557e421343f6a50ec
virlog: Introduce Type{To,From}String for virLogDestination

In order to refactor the ugly virLogParseOutputs method, this is a neat way of
finding out whether the destination type (in the form of a string) user
provided is a valid one. As a bonus, if it turns out it is valid, we get the
actual enum which will later be passed to any of virLogAddOutput methods right
away.
src/util/virlog.c
src/util/virlog.h