]> git.ipfire.org Git - thirdparty/libvirt.git/commit
daemon: Refactor connection driver module loading
authorPeter Krempa <pkrempa@redhat.com>
Thu, 26 Jan 2017 13:57:41 +0000 (14:57 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 21 Feb 2017 08:24:33 +0000 (09:24 +0100)
commit633b7592d68060352b2b02fd809d517f9ad0284f
tree23435441f83621f0c996dd0b3ad8d75f406c46bb
parent0e1404d444be11a2b61383804727538532a2bf32
daemon: Refactor connection driver module loading

Pass the registration function name to virDriverLoadModule so that we
can later call specific functions if necessary (e.g. for testing
purposes). This gets rid of the rather ugly automatic name generator and
unifies the code to load/initialize the modules.

It's also clear which registration function gets called.
daemon/libvirtd.c
src/driver.c
src/driver.h
tests/virdrivermoduletest.c