diff options
author | Jonathon Jongsma <jjongsma@redhat.com> | 2015-09-11 11:46:22 -0500 |
---|---|---|
committer | Jonathon Jongsma <jjongsma@redhat.com> | 2015-10-09 10:26:19 -0500 |
commit | 113093dd00a1cf10f6d3c3589b7589a184cec081 (patch) | |
tree | e8763849b4b8120a2d77eac804fcbef1a4019f2c /src/spice-glib-sym-file | |
parent | 9c47d3a39277144b8f3c04113d3a8672af2ed357 (diff) | |
download | spice-gtk-113093dd00a1cf10f6d3c3589b7589a184cec081.tar.gz spice-gtk-113093dd00a1cf10f6d3c3589b7589a184cec081.tar.xz spice-gtk-113093dd00a1cf10f6d3c3589b7589a184cec081.zip |
Fix progress monitoring in spice_main_file_copy_async
spice_main_file_copy_async() allows you to pass a NULL-terminated array
of files to transfer to the guest. It also allows you to pass a
progress_callback function to monitor the progress of the transfer, but
this progress callback is called separately for each file that is
transferred, and there are no parameters that allow the caller to
determine which file a given callback corresponds to. This makes it very
difficult to monitor the progress.
To make this more usable, I've changed it so that the progress callback
doesn't simply report the number of bytes read and total size of the
current file. Instead, we add up the status of all current transfers and
report that value to the callback.
Diffstat (limited to 'src/spice-glib-sym-file')
0 files changed, 0 insertions, 0 deletions