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_launch (guestfs_h *handle);
23 extern int guestfs_wait_ready (guestfs_h *handle);
24 extern int guestfs_kill_subprocess (guestfs_h *handle);
25 extern int guestfs_add_drive (guestfs_h *handle, const char *filename);
26 extern int guestfs_add_cdrom (guestfs_h *handle, const char *filename);
27 extern int guestfs_config (guestfs_h *handle, const char *qemuparam, const char *qemuvalue);
28 extern int guestfs_set_path (guestfs_h *handle, const char *path);
29 extern const char *guestfs_get_path (guestfs_h *handle);
30 extern int guestfs_set_autosync (guestfs_h *handle, int autosync);
31 extern int guestfs_get_autosync (guestfs_h *handle);
32 extern int guestfs_set_verbose (guestfs_h *handle, int verbose);
33 extern int guestfs_get_verbose (guestfs_h *handle);
34 extern int guestfs_mount (guestfs_h *handle, const char *device, const char *mountpoint);
35 extern int guestfs_sync (guestfs_h *handle);
36 extern int guestfs_touch (guestfs_h *handle, const char *path);
37 extern char *guestfs_cat (guestfs_h *handle, const char *path);
38 extern char *guestfs_ll (guestfs_h *handle, const char *directory);
39 extern char **guestfs_ls (guestfs_h *handle, const char *directory);
40 extern char **guestfs_list_devices (guestfs_h *handle);
41 extern char **guestfs_list_partitions (guestfs_h *handle);
42 extern char **guestfs_pvs (guestfs_h *handle);
43 extern char **guestfs_vgs (guestfs_h *handle);
44 extern char **guestfs_lvs (guestfs_h *handle);
45 extern struct guestfs_lvm_pv_list *guestfs_pvs_full (guestfs_h *handle);
46 extern struct guestfs_lvm_vg_list *guestfs_vgs_full (guestfs_h *handle);
47 extern struct guestfs_lvm_lv_list *guestfs_lvs_full (guestfs_h *handle);
48 extern char **guestfs_read_lines (guestfs_h *handle, const char *path);
49 extern int guestfs_aug_init (guestfs_h *handle, const char *root, int flags);
50 extern int guestfs_aug_close (guestfs_h *handle);
51 extern int guestfs_aug_defvar (guestfs_h *handle, const char *name, const char *expr);
52 extern struct guestfs_int_bool *guestfs_aug_defnode (guestfs_h *handle, const char *name, const char *expr, const char *val);
53 extern char *guestfs_aug_get (guestfs_h *handle, const char *path);
54 extern int guestfs_aug_set (guestfs_h *handle, const char *path, const char *val);
55 extern int guestfs_aug_insert (guestfs_h *handle, const char *path, const char *label, int before);
56 extern int guestfs_aug_rm (guestfs_h *handle, const char *path);
57 extern int guestfs_aug_mv (guestfs_h *handle, const char *src, const char *dest);
58 extern char **guestfs_aug_match (guestfs_h *handle, const char *path);
59 extern int guestfs_aug_save (guestfs_h *handle);
60 extern int guestfs_aug_load (guestfs_h *handle);
61 extern char **guestfs_aug_ls (guestfs_h *handle, const char *path);
62 extern int guestfs_rm (guestfs_h *handle, const char *path);
63 extern int guestfs_rmdir (guestfs_h *handle, const char *path);
64 extern int guestfs_rm_rf (guestfs_h *handle, const char *path);
65 extern int guestfs_mkdir (guestfs_h *handle, const char *path);
66 extern int guestfs_mkdir_p (guestfs_h *handle, const char *path);
67 extern int guestfs_chmod (guestfs_h *handle, int mode, const char *path);
68 extern int guestfs_chown (guestfs_h *handle, int owner, int group, const char *path);
69 extern int guestfs_exists (guestfs_h *handle, const char *path);
70 extern int guestfs_is_file (guestfs_h *handle, const char *path);
71 extern int guestfs_is_dir (guestfs_h *handle, const char *path);
72 extern int guestfs_pvcreate (guestfs_h *handle, const char *device);
73 extern int guestfs_vgcreate (guestfs_h *handle, const char *volgroup, char * const* const physvols);
74 extern int guestfs_lvcreate (guestfs_h *handle, const char *logvol, const char *volgroup, int mbytes);
75 extern int guestfs_mkfs (guestfs_h *handle, const char *fstype, const char *device);
76 extern int guestfs_sfdisk (guestfs_h *handle, const char *device, int cyls, int heads, int sectors, char * const* const lines);
77 extern int guestfs_write_file (guestfs_h *handle, const char *path, const char *content, int size);
78 extern int guestfs_umount (guestfs_h *handle, const char *pathordevice);
79 extern char **guestfs_mounts (guestfs_h *handle);
80 extern int guestfs_umount_all (guestfs_h *handle);
81 extern int guestfs_lvm_remove_all (guestfs_h *handle);
82 extern char *guestfs_file (guestfs_h *handle, const char *path);
83 extern char *guestfs_command (guestfs_h *handle, char * const* const arguments);
84 extern char **guestfs_command_lines (guestfs_h *handle, char * const* const arguments);