Some drivers are stateless (Xen, test), while others are stateful (QEMU).
The later can only be accessed via the daemon. This patch adds a new internal
driver API to allow drivers to register a set of functions for performing
work on daemon startup, shutdown and reload. It makes the QEMU driver in
qemud/driver.c provide implementations of these funtions. It adapts the
qemud/qemud.c to call these new global driver functions. Finally it fixes
the idle timeout shutdown of the daemon disabled in an earlier patch.
NB this patch adds 3 new exported symbols for private use by the daemon.
qemud/driver.c | 32 +++++++++++++++++---
qemud/driver.h | 5 +--
qemud/internal.h | 1
qemud/qemud.c | 51 ++++++++++++++++++++++++++++----
src/driver.h | 15 +++++++++
src/internal.h | 9 +++++
src/libvirt.c | 75 ++++++++++++++++++++++++++++++++++++++++++++++++
src/libvirt_sym.version | 5 +++
8 files changed, 180 insertions(+), 13 deletions(-)
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules:
http://search.cpan.org/~danberr/ -=|
|=- Projects:
http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|