diff options
author | Richard Jones <rjones@redhat.com> | 2010-08-28 10:33:24 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-08-31 19:27:34 +0100 |
commit | e776a46ffcbede6d9b030dbc8f6ab32500b325ec (patch) | |
tree | 0ccab8e3751abf91b83f987c76b18e4f1cf00ed5 /src/guestfs.c | |
parent | a8a44cecbadfd21c7f0483f8c1cdb355d08960a4 (diff) | |
download | libguestfs-e776a46ffcbede6d9b030dbc8f6ab32500b325ec.tar.gz libguestfs-e776a46ffcbede6d9b030dbc8f6ab32500b325ec.tar.xz libguestfs-e776a46ffcbede6d9b030dbc8f6ab32500b325ec.zip |
Implement progress messages in the daemon and library.
This implements progress notification messages in the daemon, and
adds a callback in the library to handle them.
No calls are changed so far, so in fact no progress messages can
be generated by this commit.
For more details, see:
https://www.redhat.com/archives/libguestfs/2010-July/msg00003.html
https://www.redhat.com/archives/libguestfs/2010-July/msg00024.html
Diffstat (limited to 'src/guestfs.c')
-rw-r--r-- | src/guestfs.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/guestfs.c b/src/guestfs.c index eaacd395..206347e5 100644 --- a/src/guestfs.c +++ b/src/guestfs.c @@ -645,3 +645,11 @@ guestfs_set_close_callback (guestfs_h *g, g->close_cb = cb; g->close_cb_data = opaque; } + +void +guestfs_set_progress_callback (guestfs_h *g, + guestfs_progress_cb cb, void *opaque) +{ + g->progress_cb = cb; + g->progress_cb_data = opaque; +} |