summaryrefslogtreecommitdiffstats
path: root/src/guestfs-actions.h
blob: c6d2933c37355ce07088f0fb1fc7ad43fc04dd13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
/* libguestfs generated file
 * WARNING: THIS FILE IS GENERATED BY 'src/generator.ml'.
 * ANY CHANGES YOU MAKE TO THIS FILE WILL BE LOST.
 *
 * Copyright (C) 2009 Red Hat Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 */

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);
extern int guestfs_test0rint (guestfs_h *handle, const char *val);
extern int guestfs_test0rinterr (guestfs_h *handle);
extern int64_t guestfs_test0rint64 (guestfs_h *handle, const char *val);
extern int64_t guestfs_test0rint64err (guestfs_h *handle);
extern int guestfs_test0rbool (guestfs_h *handle, const char *val);
extern int guestfs_test0rboolerr (guestfs_h *handle);
extern const char *guestfs_test0rconststring (guestfs_h *handle, const char *val);
extern const char *guestfs_test0rconststringerr (guestfs_h *handle);
extern char *guestfs_test0rstring (guestfs_h *handle, const char *val);
extern char *guestfs_test0rstringerr (guestfs_h *handle);
extern char **guestfs_test0rstringlist (guestfs_h *handle, const char *val);
extern char **guestfs_test0rstringlisterr (guestfs_h *handle);
extern struct guestfs_int_bool *guestfs_test0rintbool (guestfs_h *handle, const char *val);
extern struct guestfs_int_bool *guestfs_test0rintboolerr (guestfs_h *handle);
extern struct guestfs_lvm_pv_list *guestfs_test0rpvlist (guestfs_h *handle, const char *val);
extern struct guestfs_lvm_pv_list *guestfs_test0rpvlisterr (guestfs_h *handle);
extern struct guestfs_lvm_vg_list *guestfs_test0rvglist (guestfs_h *handle, const char *val);
extern struct guestfs_lvm_vg_list *guestfs_test0rvglisterr (guestfs_h *handle);
extern struct guestfs_lvm_lv_list *guestfs_test0rlvlist (guestfs_h *handle, const char *val);
extern struct guestfs_lvm_lv_list *guestfs_test0rlvlisterr (guestfs_h *handle);
extern struct guestfs_stat *guestfs_test0rstat (guestfs_h *handle, const char *val);
extern struct guestfs_stat *guestfs_test0rstaterr (guestfs_h *handle);
extern struct guestfs_statvfs *guestfs_test0rstatvfs (guestfs_h *handle, const char *val);
extern struct guestfs_statvfs *guestfs_test0rstatvfserr (guestfs_h *handle);
extern char **guestfs_test0rhashtable (guestfs_h *handle, const char *val);
extern char **guestfs_test0rhashtableerr (guestfs_h *handle);
extern int guestfs_launch (guestfs_h *handle);
extern int guestfs_wait_ready (guestfs_h *handle);
extern int guestfs_kill_subprocess (guestfs_h *handle);
extern int guestfs_add_drive (guestfs_h *handle, const char *filename);
extern int guestfs_add_cdrom (guestfs_h *handle, const char *filename);
extern int guestfs_add_drive_ro (guestfs_h *handle, const char *filename);
extern int guestfs_config (guestfs_h *handle, const char *qemuparam, const char *qemuvalue);
extern int guestfs_set_qemu (guestfs_h *handle, const char *qemu);
extern const char *guestfs_get_qemu (guestfs_h *handle);
extern int guestfs_set_path (guestfs_h *handle, const char *path);
extern const char *guestfs_get_path (guestfs_h *handle);
extern int guestfs_set_append (guestfs_h *handle, const char *append);
extern const char *guestfs_get_append (guestfs_h *handle);
extern int guestfs_set_autosync (guestfs_h *handle, int autosync);
extern int guestfs_get_autosync (guestfs_h *handle);
extern int guestfs_set_verbose (guestfs_h *handle, int verbose);
extern int guestfs_get_verbose (guestfs_h *handle);
extern int guestfs_is_ready (guestfs_h *handle);
extern int guestfs_is_config (guestfs_h *handle);
extern int guestfs_is_launching (guestfs_h *handle);
extern int guestfs_is_busy (guestfs_h *handle);
extern int guestfs_get_state (guestfs_h *handle);
extern int guestfs_set_busy (guestfs_h *handle);
extern int guestfs_set_ready (guestfs_h *handle);
extern int guestfs_end_busy (guestfs_h *handle);
extern int guestfs_mount (guestfs_h *handle, const char *device, const char *mountpoint);
extern int guestfs_sync (guestfs_h *handle);
extern int guestfs_touch (guestfs_h *handle, const char *path);
extern char *guestfs_cat (guestfs_h *handle, const char *path);
extern char *guestfs_ll (guestfs_h *handle, const char *directory);
extern char **guestfs_ls (guestfs_h *handle, const char *directory);
extern char **guestfs_list_devices (guestfs_h *handle);
extern char **guestfs_list_partitions (guestfs_h *handle);
extern char **guestfs_pvs (guestfs_h *handle);
extern char **guestfs_vgs (guestfs_h *handle);
extern char **guestfs_lvs (guestfs_h *handle);
extern struct guestfs_lvm_pv_list *guestfs_pvs_full (guestfs_h *handle);
extern struct guestfs_lvm_vg_list *guestfs_vgs_full (guestfs_h *handle);
extern struct guestfs_lvm_lv_list *guestfs_lvs_full (guestfs_h *handle);
extern char **guestfs_read_lines (guestfs_h *handle, const char *path);
extern int guestfs_aug_init (guestfs_h *handle, const char *root, int flags);
extern int guestfs_aug_close (guestfs_h *handle);
extern int guestfs_aug_defvar (guestfs_h *handle, const char *name, const char *expr);
extern struct guestfs_int_bool *guestfs_aug_defnode (guestfs_h *handle, const char *name, const char *expr, const char *val);
extern char *guestfs_aug_get (guestfs_h *handle, const char *path);
extern int guestfs_aug_set (guestfs_h *handle, const char *path, const char *val);
extern int guestfs_aug_insert (guestfs_h *handle, const char *path, const char *label, int before);
extern int guestfs_aug_rm (guestfs_h *handle, const char *path);
extern int guestfs_aug_mv (guestfs_h *handle, const char *src, const char *dest);
extern char **guestfs_aug_match (guestfs_h *handle, const char *path);
extern int guestfs_aug_save (guestfs_h *handle);
extern int guestfs_aug_load (guestfs_h *handle);
extern char **guestfs_aug_ls (guestfs_h *handle, const char *path);
extern int guestfs_rm (guestfs_h *handle, const char *path);
extern int guestfs_rmdir (guestfs_h *handle, const char *path);
extern int guestfs_rm_rf (guestfs_h *handle, const char *path);
extern int guestfs_mkdir (guestfs_h *handle, const char *path);
extern int guestfs_mkdir_p (guestfs_h *handle, const char *path);
extern int guestfs_chmod (guestfs_h *handle, int mode, const char *path);
extern int guestfs_chown (guestfs_h *handle, int owner, int group, const char *path);
extern int guestfs_exists (guestfs_h *handle, const char *path);
extern int guestfs_is_file (guestfs_h *handle, const char *path);
extern int guestfs_is_dir (guestfs_h *handle, const char *path);
extern int guestfs_pvcreate (guestfs_h *handle, const char *device);
extern int guestfs_vgcreate (guestfs_h *handle, const char *volgroup, char * const* const physvols);
extern int guestfs_lvcreate (guestfs_h *handle, const char *logvol, const char *volgroup, int mbytes);
extern int guestfs_mkfs (guestfs_h *handle, const char *fstype, const char *device);
extern int guestfs_sfdisk (guestfs_h *handle, const char *device, int cyls, int heads, int sectors, char * const* const lines);
extern int guestfs_write_file (guestfs_h *handle, const char *path, const char *content, int size);
extern int guestfs_umount (guestfs_h *handle, const char *pathordevice);
extern char **guestfs_mounts (guestfs_h *handle);
extern int guestfs_umount_all (guestfs_h *handle);
extern int guestfs_lvm_remove_all (guestfs_h *handle);
extern char *guestfs_file (guestfs_h *handle, const char *path);
extern char *guestfs_command (guestfs_h *handle, char * const* const arguments);
extern char **guestfs_command_lines (guestfs_h *handle, char * const* const arguments);
extern struct guestfs_stat *guestfs_stat (guestfs_h *handle, const char *path);
extern struct guestfs_stat *guestfs_lstat (guestfs_h *handle, const char *path);
extern struct guestfs_statvfs *guestfs_statvfs (guestfs_h *handle, const char *path);
extern char **guestfs_tune2fs_l (guestfs_h *handle, const char *device);
extern int guestfs_blockdev_setro (guestfs_h *handle, const char *device);
extern int guestfs_blockdev_setrw (guestfs_h *handle, const char *device);
extern int guestfs_blockdev_getro (guestfs_h *handle, const char *device);
extern int guestfs_blockdev_getss (guestfs_h *handle, const char *device);
extern int guestfs_blockdev_getbsz (guestfs_h *handle, const char *device);
extern int guestfs_blockdev_setbsz (guestfs_h *handle, const char *device, int blocksize);
extern int64_t guestfs_blockdev_getsz (guestfs_h *handle, const char *device);
extern int64_t guestfs_blockdev_getsize64 (guestfs_h *handle, const char *device);
extern int guestfs_blockdev_flushbufs (guestfs_h *handle, const char *device);
extern int guestfs_blockdev_rereadpt (guestfs_h *handle, const char *device);
extern int guestfs_upload (guestfs_h *handle, const char *filename, const char *remotefilename);
extern int guestfs_download (guestfs_h *handle, const char *remotefilename, const char *filename);
extern char *guestfs_checksum (guestfs_h *handle, const char *csumtype, const char *path);
extern int guestfs_tar_in (guestfs_h *handle, const char *tarfile, const char *directory);
extern int guestfs_tar_out (guestfs_h *handle, const char *directory, const char *tarfile);
extern int guestfs_tgz_in (guestfs_h *handle, const char *tarball, const char *directory);
extern int guestfs_tgz_out (guestfs_h *handle, const char *directory, const char *tarball);
extern int guestfs_mount_ro (guestfs_h *handle, const char *device, const char *mountpoint);
extern int guestfs_mount_options (guestfs_h *handle, const char *options, const char *device, const char *mountpoint);
extern int guestfs_mount_vfs (guestfs_h *handle, const char *options, const char *vfstype, const char *device, const char *mountpoint);
extern char *guestfs_debug (guestfs_h *handle, const char *subcmd, char * const* const extraargs);
extern int guestfs_lvremove (guestfs_h *handle, const char *device);
extern int guestfs_vgremove (guestfs_h *handle, const char *vgname);
extern int guestfs_pvremove (guestfs_h *handle, const char *device);
extern int guestfs_set_e2label (guestfs_h *handle, const char *device, const char *label);
extern char *guestfs_get_e2label (guestfs_h *handle, const char *device);
extern int guestfs_set_e2uuid (guestfs_h *handle, const char *device, const char *uuid);
extern char *guestfs_get_e2uuid (guestfs_h *handle, const char *device);
extern int guestfs_fsck (guestfs_h *handle, const char *fstype, const char *device);
extern int guestfs_zero (guestfs_h *handle, const char *device);
extern int guestfs_grub_install (guestfs_h *handle, const char *root, const char *device);
extern int guestfs_cp (guestfs_h *handle, const char *src, const char *dest);
extern int guestfs_cp_a (guestfs_h *handle, const char *src, const char *dest);
extern int guestfs_mv (guestfs_h *handle, const char *src, const char *dest);
extern int guestfs_drop_caches (guestfs_h *handle, int whattodrop);
extern char *guestfs_dmesg (guestfs_h *handle);
extern int guestfs_ping_daemon (guestfs_h *handle);
extern int guestfs_equal (guestfs_h *handle, const char *file1, const char *file2);
extern char **guestfs_strings (guestfs_h *handle, const char *path);
extern char **guestfs_strings_e (guestfs_h *handle, const char *encoding, const char *path);
extern char *guestfs_hexdump (guestfs_h *handle, const char *path);
extern int guestfs_zerofree (guestfs_h *handle, const char *device);
extern int guestfs_pvresize (guestfs_h *handle, const char *device);
extern int guestfs_sfdisk_N (guestfs_h *handle, const char *device, int partnum, int cyls, int heads, int sectors, const char *line);
extern char *guestfs_sfdisk_l (guestfs_h *handle, const char *device);
extern char *guestfs_sfdisk_kernel_geometry (guestfs_h *handle, const char *device);
extern char *guestfs_sfdisk_disk_geometry (guestfs_h *handle, const char *device);
extern int guestfs_vg_activate_all (guestfs_h *handle, int activate);
extern int guestfs_vg_activate (guestfs_h *handle, int activate, char * const* const volgroups);
extern int guestfs_lvresize (guestfs_h *handle, const char *device, int mbytes);
extern int guestfs_resize2fs (guestfs_h *handle, const char *device);
extern char **guestfs_find (guestfs_h *handle, const char *directory);
extern int guestfs_e2fsck_f (guestfs_h *handle, const char *device);
extern int guestfs_sleep (guestfs_h *handle, int secs);
extern int guestfs_ntfs_3g_probe (guestfs_h *handle, int rw, const char *device);
extern char *guestfs_sh (guestfs_h *handle, const char *command);
extern char **guestfs_sh_lines (guestfs_h *handle, const char *command);
extern char **guestfs_glob_expand (guestfs_h *handle, const char *pattern);
extern int guestfs_scrub_device (guestfs_h *handle, const char *device);
extern int guestfs_scrub_file (guestfs_h *handle, const char *file);
extern int guestfs_scrub_freespace (guestfs_h *handle, const char *dir);
extern char *guestfs_mkdtemp (guestfs_h *handle, const char *template);
extern int guestfs_wc_l (guestfs_h *handle, const char *path);
extern int guestfs_wc_w (guestfs_h *handle, const char *path);
extern int guestfs_wc_c (guestfs_h *handle, const char *path);
extern char **guestfs_head (guestfs_h *handle, const char *path);
extern char **guestfs_head_n (guestfs_h *handle, int nrlines, const char *path);
extern char **guestfs_tail (guestfs_h *handle, const char *path);
extern char **guestfs_tail_n (guestfs_h *handle, int nrlines, const char *path);
extern char *guestfs_df (guestfs_h *handle);
extern char *guestfs_df_h (guestfs_h *handle);
extern int64_t guestfs_du (guestfs_h *handle, const char *path);
extern char **guestfs_initrd_list (guestfs_h *handle, const char *path);
extern int guestfs_mount_loop (guestfs_h *handle, const char *file, const char *mountpoint);
extern int guestfs_mkswap (guestfs_h *handle, const char *device);
extern int guestfs_mkswap_L (guestfs_h *handle, const char *label, const char *device);
extern int guestfs_mkswap_U (guestfs_h *handle, const char *uuid, const char *device);