]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Xen: move versions to struct
authorPhilipp Hahn <hahn@univention.de>
Fri, 14 Oct 2011 10:58:01 +0000 (12:58 +0200)
committerEric Blake <eblake@redhat.com>
Fri, 14 Oct 2011 15:28:03 +0000 (09:28 -0600)
commit618758c9b4dd260678493646c1b6d6449a96752c
treef110720a013d88603b0e9d1d0e88b57c735ff154
parent1518042bf339fed6897372255bcbbefdbdcd165a
Xen: move versions to struct

Calling virInitialize() → xenRegister() → xenhypervisorInit() directly
opens a connection to the Xen Hypervisor, which breaks some unit tests.

Move all static variables into a struct to make it easier to override
them when testing.

Signed-off-by: Philipp Hahn <hahn@univention.de>
src/xen/xen_hypervisor.c
src/xen/xen_hypervisor.h