X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=slave.mli;h=2b08e045031871d12d15355fbf8c5b97230cb70e;hb=c79fc07ff71926b3bf956ff296336f6f71bb3b1e;hp=a2725ea87ab0ed0df5713f16a90cb1cf213ab470;hpb=73f1dc10b4279528818fe0fda33daf4c34488d21;p=guestfs-browser.git diff --git a/slave.mli b/slave.mli index a2725ea..2b08e04 100644 --- a/slave.mli +++ b/slave.mli @@ -174,6 +174,11 @@ val download_dir_find0 : ?fail:exn callback -> source -> string -> string -> uni file (a ASCII NUL-separated text file), and then calls the callback function. *) +val disk_usage : ?fail:exn callback -> source -> string -> int64 callback -> unit + (** [disk_usage src pathname cb] calculates the disk usage of + directory [pathname] and calls the callback with the answer + (size of {b kilobytes}). *) + val discard_command_queue : unit -> unit (** [discard_command_queue ()] discards any commands on the command queue. @@ -218,6 +223,12 @@ val set_idle_hook : unit callback -> unit the slave thread stops working on a command {i and} has no more commands left in the queue to work on. *) +val set_status_hook : string callback -> unit + (** Set the function in the main thread which is called to + update the status bar. The slave thread updates the + status bar when an operation starts or stops, keeping the + user informed of what is happening. *) + 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