Many non-daemon functions are now auto-generated.
[libguestfs.git] / ocaml / guestfs.ml
1 (* libguestfs generated file
2  * WARNING: THIS FILE IS GENERATED BY 'src/generator.ml'.
3  * ANY CHANGES YOU MAKE TO THIS FILE WILL BE LOST.
4  *
5  * Copyright (C) 2009 Red Hat Inc.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  *)
21
22 type t
23 exception Error of string
24 external create : unit -> t = "ocaml_guestfs_create"
25 external close : t -> unit = "ocaml_guestfs_create"
26
27 type lvm_pv = {
28   pv_name : string;
29   pv_uuid : string;
30   pv_fmt : string;
31   pv_size : int64;
32   dev_size : int64;
33   pv_free : int64;
34   pv_used : int64;
35   pv_attr : string;
36   pv_pe_count : int64;
37   pv_pe_alloc_count : int64;
38   pv_tags : string;
39   pe_start : int64;
40   pv_mda_count : int64;
41   pv_mda_free : int64;
42 }
43
44 type lvm_vg = {
45   vg_name : string;
46   vg_uuid : string;
47   vg_fmt : string;
48   vg_attr : string;
49   vg_size : int64;
50   vg_free : int64;
51   vg_sysid : string;
52   vg_extent_size : int64;
53   vg_extent_count : int64;
54   vg_free_count : int64;
55   max_lv : int64;
56   max_pv : int64;
57   pv_count : int64;
58   lv_count : int64;
59   snap_count : int64;
60   vg_seqno : int64;
61   vg_tags : string;
62   vg_mda_count : int64;
63   vg_mda_free : int64;
64 }
65
66 type lvm_lv = {
67   lv_name : string;
68   lv_uuid : string;
69   lv_attr : string;
70   lv_major : int64;
71   lv_minor : int64;
72   lv_kernel_major : int64;
73   lv_kernel_minor : int64;
74   lv_size : int64;
75   seg_count : int64;
76   origin : string;
77   snap_percent : float option;
78   copy_percent : float option;
79   move_pv : string;
80   lv_tags : string;
81   mirror_log : string;
82   modules : string;
83 }
84
85 external launch : t -> unit = "ocaml_guestfs_launch"
86 external wait_ready : t -> unit = "ocaml_guestfs_wait_ready"
87 external kill_subprocess : t -> unit = "ocaml_guestfs_kill_subprocess"
88 external add_drive : t -> string -> unit = "ocaml_guestfs_add_drive"
89 external add_cdrom : t -> string -> unit = "ocaml_guestfs_add_cdrom"
90 external config : t -> string -> string option -> unit = "ocaml_guestfs_config"
91 external set_path : t -> string -> unit = "ocaml_guestfs_set_path"
92 external get_path : t -> string = "ocaml_guestfs_get_path"
93 external set_autosync : t -> bool -> unit = "ocaml_guestfs_set_autosync"
94 external get_autosync : t -> bool = "ocaml_guestfs_get_autosync"
95 external set_verbose : t -> bool -> unit = "ocaml_guestfs_set_verbose"
96 external get_verbose : t -> bool = "ocaml_guestfs_get_verbose"
97 external mount : t -> string -> string -> unit = "ocaml_guestfs_mount"
98 external sync : t -> unit = "ocaml_guestfs_sync"
99 external touch : t -> string -> unit = "ocaml_guestfs_touch"
100 external cat : t -> string -> string = "ocaml_guestfs_cat"
101 external ll : t -> string -> string = "ocaml_guestfs_ll"
102 external ls : t -> string -> string list = "ocaml_guestfs_ls"
103 external list_devices : t -> string list = "ocaml_guestfs_list_devices"
104 external list_partitions : t -> string list = "ocaml_guestfs_list_partitions"
105 external pvs : t -> string list = "ocaml_guestfs_pvs"
106 external vgs : t -> string list = "ocaml_guestfs_vgs"
107 external lvs : t -> string list = "ocaml_guestfs_lvs"
108 external pvs_full : t -> lvm_pv list = "ocaml_guestfs_pvs_full"
109 external vgs_full : t -> lvm_vg list = "ocaml_guestfs_vgs_full"
110 external lvs_full : t -> lvm_lv list = "ocaml_guestfs_lvs_full"