New event API (RHBZ#664558).
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 10 Mar 2011 12:32:22 +0000 (12:32 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 15 Mar 2011 12:16:50 +0000 (12:16 +0000)
commit4e0cf4dbf8a8a96288f70114fdc3939da0aa7ad1
tree2418e32479a965eb392d08f2e648c53714118a91
parent6d6b7edd1102f8383643866bf358e494e0d518ef
New event API (RHBZ#664558).

This API allows more than one callback to be registered for each
event, makes it possible to call the API from other languages, and
allows [nearly all] log, debug and trace messages to be rerouted from
stderr.

An older version of this API was discussed on the mailing list here:
https://www.redhat.com/archives/libguestfs/2010-December/msg00081.html
https://www.redhat.com/archives/libguestfs/2011-January/msg00012.html

This also updates guestfish to use the new API for its progress bars.
23 files changed:
.gitignore
capitests/Makefile.am
capitests/test-debug-to-file.c [new file with mode: 0644]
capitests/test-private-data.c
fish/fish.c
fish/fish.h
fish/progress.c
fish/reopen.c
generator/.depend
generator/Makefile.am
generator/generator_actions.ml
generator/generator_c.ml
generator/generator_events.ml [new file with mode: 0644]
po/POTFILES.in
src/Makefile.am
src/appliance.c
src/events.c [new file with mode: 0644]
src/guestfs-internal.h
src/guestfs.c
src/guestfs.pod
src/inspect.c
src/launch.c
src/proto.c