Definition and implementation of new guestfs_read_lines API call.
[libguestfs.git] / src / guestfs-structs.h
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 struct guestfs_lvm_pv {
23   char *pv_name;
24   char pv_uuid[32]; /* this is NOT nul-terminated, be careful when printing */
25   char *pv_fmt;
26   uint64_t pv_size;
27   uint64_t dev_size;
28   uint64_t pv_free;
29   uint64_t pv_used;
30   char *pv_attr;
31   int64_t pv_pe_count;
32   int64_t pv_pe_alloc_count;
33   char *pv_tags;
34   uint64_t pe_start;
35   int64_t pv_mda_count;
36   uint64_t pv_mda_free;
37 };
38
39 struct guestfs_lvm_pv_list {
40   uint32_t len;
41   struct guestfs_lvm_pv *val;
42 };
43
44 struct guestfs_lvm_vg {
45   char *vg_name;
46   char vg_uuid[32]; /* this is NOT nul-terminated, be careful when printing */
47   char *vg_fmt;
48   char *vg_attr;
49   uint64_t vg_size;
50   uint64_t vg_free;
51   char *vg_sysid;
52   uint64_t vg_extent_size;
53   int64_t vg_extent_count;
54   int64_t vg_free_count;
55   int64_t max_lv;
56   int64_t max_pv;
57   int64_t pv_count;
58   int64_t lv_count;
59   int64_t snap_count;
60   int64_t vg_seqno;
61   char *vg_tags;
62   int64_t vg_mda_count;
63   uint64_t vg_mda_free;
64 };
65
66 struct guestfs_lvm_vg_list {
67   uint32_t len;
68   struct guestfs_lvm_vg *val;
69 };
70
71 struct guestfs_lvm_lv {
72   char *lv_name;
73   char lv_uuid[32]; /* this is NOT nul-terminated, be careful when printing */
74   char *lv_attr;
75   int64_t lv_major;
76   int64_t lv_minor;
77   int64_t lv_kernel_major;
78   int64_t lv_kernel_minor;
79   uint64_t lv_size;
80   int64_t seg_count;
81   char *origin;
82   float snap_percent; /* [0..100] or -1 */
83   float copy_percent; /* [0..100] or -1 */
84   char *move_pv;
85   char *lv_tags;
86   char *mirror_log;
87   char *modules;
88 };
89
90 struct guestfs_lvm_lv_list {
91   uint32_t len;
92   struct guestfs_lvm_lv *val;
93 };
94