On Wed, Apr 25, 2018 at 16:52:38 +0100, Daniel Berrange wrote:
The driver.{c,h} files are primarily targetted at loading hypervisor
drivers and some helper functions in that area. It also, however,
contains a generically useful function for loading extension modules
that is called by the storage driver. Split that functionality off
into a new virmodule.{c,h} file to isolate it.
Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
---
src/driver.c | 133 +-------------------------------
src/driver.h | 3 -
src/libvirt_driver_modules.syms | 1 -
src/libvirt_private.syms | 3 +
src/storage/storage_backend.c | 3 +-
src/util/Makefile.inc.am | 2 +
src/util/virmodule.c | 163 ++++++++++++++++++++++++++++++++++++++++
src/util/virmodule.h | 29 +++++++
8 files changed, 201 insertions(+), 136 deletions(-)
create mode 100644 src/util/virmodule.c
create mode 100644 src/util/virmodule.h
ACK