X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=slave.mli;h=940de14a66c51c6c355d6bd64bfe2e583859e453;hb=63477ec4c94146bae30af05022b5a064667949a8;hp=d6f9cf7ada50df0427bfc13fd212ef55733df5cc;hpb=bea873ce68b3e788c2926735fe3d513cbea24f06;p=guestfs-browser.git diff --git a/slave.mli b/slave.mli index d6f9cf7..940de14 100644 --- a/slave.mli +++ b/slave.mli @@ -180,7 +180,9 @@ val exit_thread : unit -> unit and display those in the main thread. {!set_busy_hook} and {!set_idle_hook} are used to implement a - "throbber". *) + "throbber". + + {!set_progress_hook} is used to implement a progress bar. *) val set_failure_hook : exn callback -> unit (** Set the function in the main thread which is called if there is @@ -195,3 +197,8 @@ val set_idle_hook : unit callback -> unit (** Set the function in the main thread which is called whenever the slave thread stops working on a command {i and} has no more commands left in the queue to work on. *) + +val set_progress_hook : (int64 * int64) callback -> unit + (** Set the function in the main thread which is called whenever + the slave thread receives a progress notification message + from libguestfs. *)