Initial commit.
[virt-resize-ui.git] / slave_types.mli
1 (* Virt-resize UI.
2  * Copyright (C) 2011 Red Hat Inc.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  *)
18
19 (** The types used by the slave thread. *)
20
21 (*
22 type domain = {
23   dom_id : int;
24   dom_name : string;
25   dom_state : Libvirt.Domain.state;
26 }
27     (** List of domains as returned in the {!Slave.connect} callback. *)
28 *)
29
30 type inspection_data = {
31   insp_all_filesystems : (string * string) list;
32   (** see {!Guestfs.list_filesystems} *)
33   insp_oses : inspection_os list;
34   (** one entry per root (operating system), see {!Guestfs.inspect_os} *)
35 }
36     (** The inspection data returned in the callback from
37         {!Slave.open_domain} and {!Slave.open_images}. *)
38
39 and inspection_os = {
40   insp_root : string;                 (** see {!Guestfs.inspect_os} *)
41   insp_arch : string;
42   insp_distro : string;
43   insp_drive_mappings : (string * string) list;
44   insp_filesystems : string array;
45   insp_hostname : string;
46   insp_major_version : int;
47   insp_minor_version : int;
48   insp_mountpoints : (string * string) list;
49   insp_package_format : string;
50   insp_package_management : string;
51   insp_product_name : string;
52   insp_product_variant : string;
53   insp_type : string;
54   insp_windows_current_control_set : string option;
55   insp_windows_systemroot : string option;
56 }