X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=src%2Fguestfs-actions.h;h=ae54d3a3cc3a350c15b8844edffa63eeb35e6aaf;hp=eeb69035fc15ebbe2452074008ca2d3c2daa8ff6;hb=0232e722826cfda0f6042da983f9eb871f24e946;hpb=e7eca50046e9a69dac27c0bee832af0a3014e02c diff --git a/src/guestfs-actions.h b/src/guestfs-actions.h index eeb6903..ae54d3a 100644 --- a/src/guestfs-actions.h +++ b/src/guestfs-actions.h @@ -31,6 +31,13 @@ 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_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); @@ -58,3 +65,48 @@ 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);