On 04/04/2012 08:07 AM, Daniel P. Berrange wrote:
From: "Daniel P. Berrange" <berrange(a)redhat.com>
To enable creation of unit tests, split the libvirtd config file
loading code out into separate files.
* daemon/libvirtd.c: Delete config loading code / structs
* daemon/libvirtd-config.c, daemon/libvirtd-config.h: Config
file loading APIs
Signed-off-by: Daniel P. Berrange <berrange(a)redhat.com>
---
daemon/Makefile.am | 1 +
daemon/libvirtd-config.c | 456 +++++++++++++++++++++++++++++++++++++++++++
daemon/libvirtd-config.h | 91 +++++++++
daemon/libvirtd.c | 479 +---------------------------------------------
4 files changed, 549 insertions(+), 478 deletions(-)
create mode 100644 daemon/libvirtd-config.c
create mode 100644 daemon/libvirtd-config.h
ACK. Looks straightforward.
--
Eric Blake eblake(a)redhat.com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org