open Utils
-module G = Guestfs
-
(* Main. *)
let () =
let cli_request = Cmdline.command_line () in
*)
if verbose () then (
debug "%s %s" Config.package Config.version;
- let v = fst (Libvirt.get_version ()) in
- debug "libvirt %d.%d.%d"
- (v / 1_000_000) ((v / 1_000) mod 1_000) (v mod 1_000);
- let g = G.create () in
- let v = G.version g in
- debug "libguestfs %Ld.%Ld.%Ld%s"
- v.G.major v.G.minor v.G.release v.G.extra;
- G.close g;
+ debug "libguestfs %s" (libguestfs_version_string ());
+ debug "libvirt %s" (libvirt_version_string ());
);
- let ds = Window.open_main_window () in
- Slave.set_failure_hook (Window.failure ds);
- Slave.set_busy_hook ds.Window.throbber_busy;
- Slave.set_idle_hook ds.Window.throbber_idle;
+ let ws = Window.open_main_window () in
+ Slave.set_failure_hook (Window.failure ws);
+ Slave.set_busy_hook (Window.throbber_busy ws);
+ Slave.set_idle_hook (Window.throbber_idle ws);
+ Slave.set_status_hook (Window.set_statusbar ws);
+ Slave.set_progress_hook (Window.progress ws);
(* What did the user request on the command line? *)
- Window.run_cli_request ds cli_request;
+ Window.run_cli_request ws cli_request;
(* Run the main display thread. When this returns, the application
* has been closed.