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 program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program 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
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #include "../src/guestfs_protocol.h"
24 extern int do_mount (const char *device, const char *mountpoint);
25 extern int do_sync (void);
26 extern int do_touch (const char *path);
27 extern char *do_cat (const char *path);
28 extern char *do_ll (const char *directory);
29 extern char **do_ls (const char *directory);
30 extern char **do_list_devices (void);
31 extern char **do_list_partitions (void);
32 extern char **do_pvs (void);
33 extern char **do_vgs (void);
34 extern char **do_lvs (void);
35 extern guestfs_lvm_int_pv_list *do_pvs_full (void);
36 extern guestfs_lvm_int_vg_list *do_vgs_full (void);
37 extern guestfs_lvm_int_lv_list *do_lvs_full (void);
38 extern char **do_read_lines (const char *path);
39 extern int do_aug_init (const char *root, int flags);
40 extern int do_aug_close (void);
41 extern int do_aug_defvar (const char *name, const char *expr);
42 extern guestfs_aug_defnode_ret *do_aug_defnode (const char *name, const char *expr, const char *val);
43 extern char *do_aug_get (const char *path);
44 extern int do_aug_set (const char *path, const char *val);
45 extern int do_aug_insert (const char *path, const char *label, int before);
46 extern int do_aug_rm (const char *path);
47 extern int do_aug_mv (const char *src, const char *dest);
48 extern char **do_aug_match (const char *path);
49 extern int do_aug_save (void);
50 extern int do_aug_load (void);
51 extern char **do_aug_ls (const char *path);
52 extern int do_rm (const char *path);
53 extern int do_rmdir (const char *path);
54 extern int do_rm_rf (const char *path);
55 extern int do_mkdir (const char *path);
56 extern int do_mkdir_p (const char *path);
57 extern int do_chmod (int mode, const char *path);
58 extern int do_chown (int owner, int group, const char *path);
59 extern int do_exists (const char *path);
60 extern int do_is_file (const char *path);
61 extern int do_is_dir (const char *path);
62 extern int do_pvcreate (const char *device);
63 extern int do_vgcreate (const char *volgroup, char * const* const physvols);
64 extern int do_lvcreate (const char *logvol, const char *volgroup, int mbytes);
65 extern int do_mkfs (const char *fstype, const char *device);
66 extern int do_sfdisk (const char *device, int cyls, int heads, int sectors, char * const* const lines);
67 extern int do_write_file (const char *path, const char *content, int size);
68 extern int do_umount (const char *pathordevice);
69 extern char **do_mounts (void);
70 extern int do_umount_all (void);
71 extern int do_lvm_remove_all (void);
72 extern char *do_file (const char *path);
73 extern char *do_command (char * const* const arguments);
74 extern char **do_command_lines (char * const* const arguments);
75 extern guestfs_int_stat *do_stat (const char *path);
76 extern guestfs_int_stat *do_lstat (const char *path);
77 extern guestfs_int_statvfs *do_statvfs (const char *path);
78 extern char **do_tune2fs_l (const char *device);
79 extern int do_blockdev_setro (const char *device);
80 extern int do_blockdev_setrw (const char *device);
81 extern int do_blockdev_getro (const char *device);
82 extern int do_blockdev_getss (const char *device);
83 extern int do_blockdev_getbsz (const char *device);
84 extern int do_blockdev_setbsz (const char *device, int blocksize);
85 extern int64_t do_blockdev_getsz (const char *device);
86 extern int64_t do_blockdev_getsize64 (const char *device);
87 extern int do_blockdev_flushbufs (const char *device);
88 extern int do_blockdev_rereadpt (const char *device);
89 extern int do_upload (const char *remotefilename);
90 extern int do_download (const char *remotefilename);
91 extern char *do_checksum (const char *csumtype, const char *path);
92 extern int do_tar_in (const char *directory);
93 extern int do_tar_out (const char *directory);
94 extern int do_tgz_in (const char *directory);
95 extern int do_tgz_out (const char *directory);
96 extern int do_mount_ro (const char *device, const char *mountpoint);
97 extern int do_mount_options (const char *options, const char *device, const char *mountpoint);
98 extern int do_mount_vfs (const char *options, const char *vfstype, const char *device, const char *mountpoint);
99 extern char *do_debug (const char *subcmd, char * const* const extraargs);
100 extern int do_lvremove (const char *device);
101 extern int do_vgremove (const char *vgname);
102 extern int do_pvremove (const char *device);
103 extern int do_set_e2label (const char *device, const char *label);
104 extern char *do_get_e2label (const char *device);
105 extern int do_set_e2uuid (const char *device, const char *uuid);
106 extern char *do_get_e2uuid (const char *device);
107 extern int do_fsck (const char *fstype, const char *device);
108 extern int do_zero (const char *device);
109 extern int do_grub_install (const char *root, const char *device);
110 extern int do_cp (const char *src, const char *dest);
111 extern int do_cp_a (const char *src, const char *dest);
112 extern int do_mv (const char *src, const char *dest);
113 extern int do_drop_caches (int whattodrop);
114 extern char *do_dmesg (void);
115 extern int do_ping_daemon (void);
116 extern int do_equal (const char *file1, const char *file2);
117 extern char **do_strings (const char *path);
118 extern char **do_strings_e (const char *encoding, const char *path);
119 extern char *do_hexdump (const char *path);
120 extern int do_zerofree (const char *device);
121 extern int do_pvresize (const char *device);
122 extern int do_sfdisk_N (const char *device, int n, int cyls, int heads, int sectors, const char *line);
123 extern char *do_sfdisk_l (const char *device);
124 extern char *do_sfdisk_kernel_geometry (const char *device);
125 extern char *do_sfdisk_disk_geometry (const char *device);
126 extern int do_vg_activate_all (int activate);
127 extern int do_vg_activate (int activate, char * const* const volgroups);
128 extern int do_lvresize (const char *device, int mbytes);
129 extern int do_resize2fs (const char *device);
130 extern char **do_find (const char *directory);
131 extern int do_e2fsck_f (const char *device);