Add 'readdir' 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_int_bool {
23   int32_t i;
24   int32_t b;
25 };
26
27 struct guestfs_lvm_pv {
28   char *pv_name;
29   char pv_uuid[32]; /* this is NOT nul-terminated, be careful when printing */
30   char *pv_fmt;
31   uint64_t pv_size;
32   uint64_t dev_size;
33   uint64_t pv_free;
34   uint64_t pv_used;
35   char *pv_attr;
36   int64_t pv_pe_count;
37   int64_t pv_pe_alloc_count;
38   char *pv_tags;
39   uint64_t pe_start;
40   int64_t pv_mda_count;
41   uint64_t pv_mda_free;
42 };
43
44 struct guestfs_lvm_pv_list {
45   uint32_t len;
46   struct guestfs_lvm_pv *val;
47 };
48
49 struct guestfs_lvm_vg {
50   char *vg_name;
51   char vg_uuid[32]; /* this is NOT nul-terminated, be careful when printing */
52   char *vg_fmt;
53   char *vg_attr;
54   uint64_t vg_size;
55   uint64_t vg_free;
56   char *vg_sysid;
57   uint64_t vg_extent_size;
58   int64_t vg_extent_count;
59   int64_t vg_free_count;
60   int64_t max_lv;
61   int64_t max_pv;
62   int64_t pv_count;
63   int64_t lv_count;
64   int64_t snap_count;
65   int64_t vg_seqno;
66   char *vg_tags;
67   int64_t vg_mda_count;
68   uint64_t vg_mda_free;
69 };
70
71 struct guestfs_lvm_vg_list {
72   uint32_t len;
73   struct guestfs_lvm_vg *val;
74 };
75
76 struct guestfs_lvm_lv {
77   char *lv_name;
78   char lv_uuid[32]; /* this is NOT nul-terminated, be careful when printing */
79   char *lv_attr;
80   int64_t lv_major;
81   int64_t lv_minor;
82   int64_t lv_kernel_major;
83   int64_t lv_kernel_minor;
84   uint64_t lv_size;
85   int64_t seg_count;
86   char *origin;
87   float snap_percent; /* [0..100] or -1 */
88   float copy_percent; /* [0..100] or -1 */
89   char *move_pv;
90   char *lv_tags;
91   char *mirror_log;
92   char *modules;
93 };
94
95 struct guestfs_lvm_lv_list {
96   uint32_t len;
97   struct guestfs_lvm_lv *val;
98 };
99
100 struct guestfs_stat {
101   int64_t dev;
102   int64_t ino;
103   int64_t mode;
104   int64_t nlink;
105   int64_t uid;
106   int64_t gid;
107   int64_t rdev;
108   int64_t size;
109   int64_t blksize;
110   int64_t blocks;
111   int64_t atime;
112   int64_t mtime;
113   int64_t ctime;
114 };
115
116 struct guestfs_statvfs {
117   int64_t bsize;
118   int64_t frsize;
119   int64_t blocks;
120   int64_t bfree;
121   int64_t bavail;
122   int64_t files;
123   int64_t ffree;
124   int64_t favail;
125   int64_t fsid;
126   int64_t flag;
127   int64_t namemax;
128 };
129
130 struct guestfs_dirent {
131   int64_t ino;
132   char ftyp;
133   char *name;
134 };
135
136 struct guestfs_dirent_list {
137   uint32_t len;
138   struct guestfs_dirent *val;
139 };
140