The following patch adds a qemud/event.c & qemud/event.h file providing a
general purpose event loop built around poll. Users register file handles
and associated callbacks, and / or timers. The qemud.c file is changed to
make use of these APIs for dealing with server, client, and VM file handles
and/or sockets. This decouples much of the QEMU VM I/O code from the main
qemud.c daemon code.
qemud/event.c | 311 +++++++++++++++++++++++++++++++++++++++++
qemud/event.h | 13 +
qemud/Makefile.am | 3
qemud/qemud.c | 401 +++++++++++++++++++++++++++++-------------------------
qemud/remote.c | 5
5 files changed, 546 insertions(+), 187 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 -=|