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.
5 * Copyright (C) 2009 Red Hat Inc.
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.
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.
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
22 extern int guestfs_test0 (guestfs_h *handle, const char *str, const char *optstr, char * const* const strlist, int b, int integer, const char *filein, const char *fileout);
23 extern int guestfs_test0rint (guestfs_h *handle, const char *val);
24 extern int guestfs_test0rinterr (guestfs_h *handle);
25 extern int64_t guestfs_test0rint64 (guestfs_h *handle, const char *val);
26 extern int64_t guestfs_test0rint64err (guestfs_h *handle);
27 extern int guestfs_test0rbool (guestfs_h *handle, const char *val);
28 extern int guestfs_test0rboolerr (guestfs_h *handle);
29 extern const char *guestfs_test0rconststring (guestfs_h *handle, const char *val);
30 extern const char *guestfs_test0rconststringerr (guestfs_h *handle);
31 extern char *guestfs_test0rstring (guestfs_h *handle, const char *val);
32 extern char *guestfs_test0rstringerr (guestfs_h *handle);
33 extern char **guestfs_test0rstringlist (guestfs_h *handle, const char *val);
34 extern char **guestfs_test0rstringlisterr (guestfs_h *handle);
35 extern struct guestfs_int_bool *guestfs_test0rintbool (guestfs_h *handle, const char *val);
36 extern struct guestfs_int_bool *guestfs_test0rintboolerr (guestfs_h *handle);
37 extern struct guestfs_lvm_pv_list *guestfs_test0rpvlist (guestfs_h *handle, const char *val);
38 extern struct guestfs_lvm_pv_list *guestfs_test0rpvlisterr (guestfs_h *handle);
39 extern struct guestfs_lvm_vg_list *guestfs_test0rvglist (guestfs_h *handle, const char *val);
40 extern struct guestfs_lvm_vg_list *guestfs_test0rvglisterr (guestfs_h *handle);
41 extern struct guestfs_lvm_lv_list *guestfs_test0rlvlist (guestfs_h *handle, const char *val);
42 extern struct guestfs_lvm_lv_list *guestfs_test0rlvlisterr (guestfs_h *handle);
43 extern struct guestfs_stat *guestfs_test0rstat (guestfs_h *handle, const char *val);
44 extern struct guestfs_stat *guestfs_test0rstaterr (guestfs_h *handle);
45 extern struct guestfs_statvfs *guestfs_test0rstatvfs (guestfs_h *handle, const char *val);
46 extern struct guestfs_statvfs *guestfs_test0rstatvfserr (guestfs_h *handle);
47 extern char **guestfs_test0rhashtable (guestfs_h *handle, const char *val);
48 extern char **guestfs_test0rhashtableerr (guestfs_h *handle);
49 extern int guestfs_launch (guestfs_h *handle);
50 extern int guestfs_wait_ready (guestfs_h *handle);
51 extern int guestfs_kill_subprocess (guestfs_h *handle);
52 extern int guestfs_add_drive (guestfs_h *handle, const char *filename);
53 extern int guestfs_add_cdrom (guestfs_h *handle, const char *filename);
54 extern int guestfs_config (guestfs_h *handle, const char *qemuparam, const char *qemuvalue);
55 extern int guestfs_set_qemu (guestfs_h *handle, const char *qemu);
56 extern const char *guestfs_get_qemu (guestfs_h *handle);
57 extern int guestfs_set_path (guestfs_h *handle, const char *path);
58 extern const char *guestfs_get_path (guestfs_h *handle);
59 extern int guestfs_set_append (guestfs_h *handle, const char *append);
60 extern const char *guestfs_get_append (guestfs_h *handle);
61 extern int guestfs_set_autosync (guestfs_h *handle, int autosync);
62 extern int guestfs_get_autosync (guestfs_h *handle);
63 extern int guestfs_set_verbose (guestfs_h *handle, int verbose);
64 extern int guestfs_get_verbose (guestfs_h *handle);
65 extern int guestfs_is_ready (guestfs_h *handle);
66 extern int guestfs_is_config (guestfs_h *handle);
67 extern int guestfs_is_launching (guestfs_h *handle);
68 extern int guestfs_is_busy (guestfs_h *handle);
69 extern int guestfs_get_state (guestfs_h *handle);
70 extern int guestfs_set_busy (guestfs_h *handle);
71 extern int guestfs_set_ready (guestfs_h *handle);
72 extern int guestfs_end_busy (guestfs_h *handle);
73 extern int guestfs_mount (guestfs_h *handle, const char *device, const char *mountpoint);
74 extern int guestfs_sync (guestfs_h *handle);
75 extern int guestfs_touch (guestfs_h *handle, const char *path);
76 extern char *guestfs_cat (guestfs_h *handle, const char *path);
77 extern char *guestfs_ll (guestfs_h *handle, const char *directory);
78 extern char **guestfs_ls (guestfs_h *handle, const char *directory);
79 extern char **guestfs_list_devices (guestfs_h *handle);
80 extern char **guestfs_list_partitions (guestfs_h *handle);
81 extern char **guestfs_pvs (guestfs_h *handle);
82 extern char **guestfs_vgs (guestfs_h *handle);
83 extern char **guestfs_lvs (guestfs_h *handle);
84 extern struct guestfs_lvm_pv_list *guestfs_pvs_full (guestfs_h *handle);
85 extern struct guestfs_lvm_vg_list *guestfs_vgs_full (guestfs_h *handle);
86 extern struct guestfs_lvm_lv_list *guestfs_lvs_full (guestfs_h *handle);
87 extern char **guestfs_read_lines (guestfs_h *handle, const char *path);
88 extern int guestfs_aug_init (guestfs_h *handle, const char *root, int flags);
89 extern int guestfs_aug_close (guestfs_h *handle);
90 extern int guestfs_aug_defvar (guestfs_h *handle, const char *name, const char *expr);
91 extern struct guestfs_int_bool *guestfs_aug_defnode (guestfs_h *handle, const char *name, const char *expr, const char *val);
92 extern char *guestfs_aug_get (guestfs_h *handle, const char *path);
93 extern int guestfs_aug_set (guestfs_h *handle, const char *path, const char *val);
94 extern int guestfs_aug_insert (guestfs_h *handle, const char *path, const char *label, int before);
95 extern int guestfs_aug_rm (guestfs_h *handle, const char *path);
96 extern int guestfs_aug_mv (guestfs_h *handle, const char *src, const char *dest);
97 extern char **guestfs_aug_match (guestfs_h *handle, const char *path);
98 extern int guestfs_aug_save (guestfs_h *handle);
99 extern int guestfs_aug_load (guestfs_h *handle);
100 extern char **guestfs_aug_ls (guestfs_h *handle, const char *path);
101 extern int guestfs_rm (guestfs_h *handle, const char *path);
102 extern int guestfs_rmdir (guestfs_h *handle, const char *path);
103 extern int guestfs_rm_rf (guestfs_h *handle, const char *path);
104 extern int guestfs_mkdir (guestfs_h *handle, const char *path);
105 extern int guestfs_mkdir_p (guestfs_h *handle, const char *path);
106 extern int guestfs_chmod (guestfs_h *handle, int mode, const char *path);
107 extern int guestfs_chown (guestfs_h *handle, int owner, int group, const char *path);
108 extern int guestfs_exists (guestfs_h *handle, const char *path);
109 extern int guestfs_is_file (guestfs_h *handle, const char *path);
110 extern int guestfs_is_dir (guestfs_h *handle, const char *path);
111 extern int guestfs_pvcreate (guestfs_h *handle, const char *device);
112 extern int guestfs_vgcreate (guestfs_h *handle, const char *volgroup, char * const* const physvols);
113 extern int guestfs_lvcreate (guestfs_h *handle, const char *logvol, const char *volgroup, int mbytes);
114 extern int guestfs_mkfs (guestfs_h *handle, const char *fstype, const char *device);
115 extern int guestfs_sfdisk (guestfs_h *handle, const char *device, int cyls, int heads, int sectors, char * const* const lines);
116 extern int guestfs_write_file (guestfs_h *handle, const char *path, const char *content, int size);
117 extern int guestfs_umount (guestfs_h *handle, const char *pathordevice);
118 extern char **guestfs_mounts (guestfs_h *handle);
119 extern int guestfs_umount_all (guestfs_h *handle);
120 extern int guestfs_lvm_remove_all (guestfs_h *handle);
121 extern char *guestfs_file (guestfs_h *handle, const char *path);
122 extern char *guestfs_command (guestfs_h *handle, char * const* const arguments);
123 extern char **guestfs_command_lines (guestfs_h *handle, char * const* const arguments);
124 extern struct guestfs_stat *guestfs_stat (guestfs_h *handle, const char *path);
125 extern struct guestfs_stat *guestfs_lstat (guestfs_h *handle, const char *path);
126 extern struct guestfs_statvfs *guestfs_statvfs (guestfs_h *handle, const char *path);
127 extern char **guestfs_tune2fs_l (guestfs_h *handle, const char *device);
128 extern int guestfs_blockdev_setro (guestfs_h *handle, const char *device);
129 extern int guestfs_blockdev_setrw (guestfs_h *handle, const char *device);
130 extern int guestfs_blockdev_getro (guestfs_h *handle, const char *device);
131 extern int guestfs_blockdev_getss (guestfs_h *handle, const char *device);
132 extern int guestfs_blockdev_getbsz (guestfs_h *handle, const char *device);
133 extern int guestfs_blockdev_setbsz (guestfs_h *handle, const char *device, int blocksize);
134 extern int64_t guestfs_blockdev_getsz (guestfs_h *handle, const char *device);
135 extern int64_t guestfs_blockdev_getsize64 (guestfs_h *handle, const char *device);
136 extern int guestfs_blockdev_flushbufs (guestfs_h *handle, const char *device);
137 extern int guestfs_blockdev_rereadpt (guestfs_h *handle, const char *device);
138 extern int guestfs_upload (guestfs_h *handle, const char *filename, const char *remotefilename);
139 extern int guestfs_download (guestfs_h *handle, const char *remotefilename, const char *filename);
140 extern char *guestfs_checksum (guestfs_h *handle, const char *csumtype, const char *path);
141 extern int guestfs_tar_in (guestfs_h *handle, const char *tarfile, const char *directory);
142 extern int guestfs_tar_out (guestfs_h *handle, const char *directory, const char *tarfile);
143 extern int guestfs_tgz_in (guestfs_h *handle, const char *tarball, const char *directory);
144 extern int guestfs_tgz_out (guestfs_h *handle, const char *directory, const char *tarball);
145 extern int guestfs_mount_ro (guestfs_h *handle, const char *device, const char *mountpoint);
146 extern int guestfs_mount_options (guestfs_h *handle, const char *options, const char *device, const char *mountpoint);
147 extern int guestfs_mount_vfs (guestfs_h *handle, const char *options, const char *vfstype, const char *device, const char *mountpoint);
148 extern char *guestfs_debug (guestfs_h *handle, const char *subcmd, char * const* const extraargs);
149 extern int guestfs_lvremove (guestfs_h *handle, const char *device);
150 extern int guestfs_vgremove (guestfs_h *handle, const char *vgname);
151 extern int guestfs_pvremove (guestfs_h *handle, const char *device);
152 extern int guestfs_set_e2label (guestfs_h *handle, const char *device, const char *label);
153 extern char *guestfs_get_e2label (guestfs_h *handle, const char *device);
154 extern int guestfs_set_e2uuid (guestfs_h *handle, const char *device, const char *uuid);
155 extern char *guestfs_get_e2uuid (guestfs_h *handle, const char *device);
156 extern int guestfs_fsck (guestfs_h *handle, const char *fstype, const char *device);
157 extern int guestfs_zero (guestfs_h *handle, const char *device);
158 extern int guestfs_grub_install (guestfs_h *handle, const char *root, const char *device);
159 extern int guestfs_cp (guestfs_h *handle, const char *src, const char *dest);
160 extern int guestfs_cp_a (guestfs_h *handle, const char *src, const char *dest);
161 extern int guestfs_mv (guestfs_h *handle, const char *src, const char *dest);
162 extern int guestfs_drop_caches (guestfs_h *handle, int whattodrop);
163 extern char *guestfs_dmesg (guestfs_h *handle);
164 extern int guestfs_ping_daemon (guestfs_h *handle);
165 extern int guestfs_equal (guestfs_h *handle, const char *file1, const char *file2);
166 extern char **guestfs_strings (guestfs_h *handle, const char *path);
167 extern char **guestfs_strings_e (guestfs_h *handle, const char *encoding, const char *path);
168 extern char *guestfs_hexdump (guestfs_h *handle, const char *path);
169 extern int guestfs_zerofree (guestfs_h *handle, const char *device);
170 extern int guestfs_pvresize (guestfs_h *handle, const char *device);
171 extern int guestfs_sfdisk_N (guestfs_h *handle, const char *device, int n, int cyls, int heads, int sectors, const char *line);
172 extern char *guestfs_sfdisk_l (guestfs_h *handle, const char *device);
173 extern char *guestfs_sfdisk_kernel_geometry (guestfs_h *handle, const char *device);
174 extern char *guestfs_sfdisk_disk_geometry (guestfs_h *handle, const char *device);
175 extern int guestfs_vg_activate_all (guestfs_h *handle, int activate);
176 extern int guestfs_vg_activate (guestfs_h *handle, int activate, char * const* const volgroups);
177 extern int guestfs_lvresize (guestfs_h *handle, const char *device, int mbytes);
178 extern int guestfs_resize2fs (guestfs_h *handle, const char *device);
179 extern char **guestfs_find (guestfs_h *handle, const char *directory);
180 extern int guestfs_e2fsck_f (guestfs_h *handle, const char *device);