]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Turn virLogSource into a struct instead of an enum
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 27 Feb 2014 17:44:53 +0000 (17:44 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 18 Mar 2014 14:29:22 +0000 (14:29 +0000)
commit098dd79ee2657347a7585069a386a08eed8199e3
tree813d9158fe639380d157a95e94fa666f626cbfda
parentb29275d928eaaf0cb0259d458050210e0eec9f8a
Turn virLogSource into a struct instead of an enum

As part of the goal to get away from doing string matching on
filenames when deciding whether to emit a log message, turn
the virLogSource enum into a struct which contains a log
"name". There will eventually be one virLogSource instance
statically declared per source file. To minimise churn in this
commit though, a single global instance is used.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/libvirt_private.syms
src/node_device/node_device_udev.c
src/qemu/qemu_capabilities.c
src/util/viraudit.c
src/util/viraudit.h
src/util/virerror.c
src/util/virlog.c
src/util/virlog.h
src/util/virprobe.h
tests/testutils.c