X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=filetree_type.mli;h=b5c642aff7f80957a42b09ed62b914ba8c8fe3c3;hb=refs%2Ftags%2F0.1.7;hp=e1bd7da4b80135e4db65dd2453a33536e9b0235e;hpb=e0047b09f88dcfa6dd9e771caf57a744095321f2;p=guestfs-browser.git diff --git a/filetree_type.mli b/filetree_type.mli index e1bd7da..b5c642a 100644 --- a/filetree_type.mli +++ b/filetree_type.mli @@ -62,11 +62,11 @@ and content_t = | Loading (* special "loading ..." node *) | ErrorMessage of string (* error message node *) | Info of string (* information node (eg. disk usage) *) - | Top of Slave.source (* top level OS or volume node *) + | Top of Slave_types.source (* top level OS or volume node *) (* top level Windows Registry node *) - | TopWinReg of Slave.source * string * string * string - | Directory of Slave.direntry (* a directory *) - | File of Slave.direntry (* a file inc. special files *) + | TopWinReg of Slave_types.source * string * string * string + | Directory of Slave_types.direntry(* a directory *) + | File of Slave_types.direntry (* a file inc. special files *) | RegKey of Hivex.node (* a registry key (like a dir) *) | RegValue of Hivex.value (* a registry value (like a file) *) @@ -80,7 +80,18 @@ val find_child_node_by_content : t -> Gtk.tree_iter -> content_t -> Gtk.tree_ite [hdata.content] and returns that child. If no child found, raises [Not_found]. *) -val get_pathname : t -> Gtk.tree_iter -> Slave.source * string +val get_pathname : t -> Gtk.tree_iter -> Slave_types.source * string (* Get the full path to a row by chasing up through the tree to the top. This also returns the source (eg. operating system or single volume). *) + +val get_registry_path : t -> Gtk.tree_iter -> (Slave_types.source * string * string * string) * string list + (* Get the path to the top from a registry key. This returns the + pair [(TopWinReg_data, path)] where [TopWinReg_data] is the data + inside a {!TopWinReg} node, and [path] is the path (list of node + names) up to the top. You normally need to call {!List.rev} on + [path]. *) + +val cache_registry_file : ?fail:exn Slave.callback -> t -> Gtk.tree_path -> Slave_types.source -> string -> string -> unit Slave.callback -> unit + (* This is called whenever we need the registry cache file and we + can't be sure that it has already been downloaded. *)