1 (* virt-manager-like graphical management tool.
2 (C) Copyright 2007 Richard W.M. Jones, Red Hat Inc.
5 Handle connections and the complicated GtkTreeView which
6 displays the connections / domains.
9 (** Get the list of current connections. *)
10 val get_conns : unit -> (int * Libvirt.rw Libvirt.Connect.t) list
12 (** The current/previous state last time repopulate was called. The
13 repopulate function uses this state to determine what has changed
14 (eg. domains added, removed) since last time.
18 type columns = string GTree.column * string GTree.column * string GTree.column * string GTree.column * string GTree.column * int GTree.column
20 (** This function should be called once per second in order to
21 redraw the GtkTreeView.
23 Takes the previous state as a parameter and returns the new state.
25 val repopulate : GTree.view -> GTree.tree_store -> columns -> state -> state
27 (** Create the GtkTreeView. Returns the widget itself, the model,
28 the list of columns, and the initial state.
30 val make_treeview : ?packing:(GObj.widget -> unit) -> unit -> GTree.view * GTree.tree_store * columns * state
32 (** This callback creates the Connect to hypervisor dialog. *)
33 val open_connection : unit -> unit