slave: Use slightly modified event_callback.
[guestfs-browser.git] / slave_types.ml
1 (* Guestfs Browser.
2  * Copyright (C) 2010 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 module D = Libvirt.Domain
20 module G = Guestfs
21
22 type domain = {
23   dom_id : int;
24   dom_name : string;
25   dom_state : D.state;
26 }
27
28 and inspection_data = {
29   insp_all_filesystems : (string * string) list;
30   insp_oses : inspection_os list;
31 }
32
33 and inspection_os = {
34   insp_root : string;
35   insp_arch : string;
36   insp_distro : string;
37   insp_drive_mappings : (string * string) list;
38   insp_filesystems : string array;
39   insp_hostname : string;
40   insp_major_version : int;
41   insp_minor_version : int;
42   insp_mountpoints : (string * string) list;
43   insp_package_format : string;
44   insp_package_management : string;
45   insp_product_name : string;
46   insp_product_variant : string;
47   insp_type : string;
48   insp_windows_current_control_set : string option;
49   insp_windows_systemroot : string option;
50   insp_winreg_DEFAULT : string option;
51   insp_winreg_SAM : string option;
52   insp_winreg_SECURITY : string option;
53   insp_winreg_SOFTWARE : string option;
54   insp_winreg_SYSTEM : string option;
55 }
56
57 and source = OS of inspection_os | Volume of string
58
59 and direntry = {
60   dent_name : string;
61   dent_stat : G.stat;
62   dent_link : string;
63 }
64
65 and download_dir_tarball_format = Tar | TGZ | TXZ