X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=filetree.mli;h=9730fef49dede99aabe09db8ffbc2dc65a48cd4a;hb=3b2348f5f4b770e3e7f886d851eeadc59bbd2357;hp=7321a4f339274d0df9793ea91e83509de300acfc;hpb=b07102fda0034da5840a9f33bd6d404a195b8cc9;p=guestfs-browser.git diff --git a/filetree.mli b/filetree.mli index 7321a4f..9730fef 100644 --- a/filetree.mli +++ b/filetree.mli @@ -26,8 +26,22 @@ to this trick: http://mail.gnome.org/archives/gtk-app-devel-list/2003-May/msg00241.html *) -val filetree : string -> Slave.rw_flag -> GTree.view - (** [filetree dev rw] creates a new filetree widget. +type t + (** A filetree widget. Actually an opaque object which contains the + widget and other data. Use the accessors below. *) - [dev] is the device. - [rw] is the RO|RW flag. *) +val create : packing:(GObj.widget -> unit) -> unit -> t + (** Create a new filetree widget (empty). + + [~packing] is the required packing for the widget. *) + +val clear : t -> unit + (** Clear out all rows in existing widget. *) + +val add : t -> string -> Slave_types.inspection_data -> unit + (** [add t name data] clears out the widget and adds the operating + system and/or filesystems described by the [data] struct. + + The [name] parameter should be some host-side (verifiable) name, + not any untrusted string from the guest; usually we pass the + name of the guest from libvirt here. *)