Removed $Id$ everywhere.
[virt-top.git] / mlvirtmanager / mlvirtmanager_connections.mli
1 (* virt-manager-like graphical management tool.
2    (C) Copyright 2007 Richard W.M. Jones, Red Hat Inc.
3    http://libvirt.org/
4
5    Handle connections and the complicated GtkTreeView which
6    displays the connections / domains.
7 *)
8
9 (** Get the list of current connections. *)
10 val get_conns : unit -> (int * Libvirt.rw Libvirt.Connect.t) list
11
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.
15 *)
16 type state
17
18 type columns = string GTree.column * string GTree.column * string GTree.column * string GTree.column * string GTree.column * int GTree.column
19
20 (** This function should be called once per second in order to
21     redraw the GtkTreeView.
22
23     Takes the previous state as a parameter and returns the new state.
24 *)
25 val repopulate : GTree.view -> GTree.tree_store -> columns -> state -> state
26
27 (** Create the GtkTreeView.  Returns the widget itself, the model,
28     the list of columns, and the initial state.
29 *)
30 val make_treeview : ?packing:(GObj.widget -> unit) -> unit -> GTree.view * GTree.tree_store * columns * state
31
32 (** This callback creates the Connect to hypervisor dialog. *)
33 val open_connection : unit -> unit