From 4e0cf4dbf8a8a96288f70114fdc3939da0aa7ad1 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 10 Mar 2011 12:32:22 +0000 Subject: 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. --- fish/fish.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fish/fish.c') diff --git a/fish/fish.c b/fish/fish.c index b62c0988..3ed200c8 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -499,7 +499,8 @@ main (int argc, char *argv[]) : (optind >= argc && isatty (0)); if (progress_bars) - guestfs_set_progress_callback (g, progress_callback, NULL); + guestfs_set_event_callback (g, progress_callback, + GUESTFS_EVENT_PROGRESS, 0, NULL); /* Interactive, shell script, or command(s) on the command line? */ if (optind >= argc) { -- cgit