summaryrefslogtreecommitdiffstats
path: root/perl/Guestfs.xs
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2009-05-01 11:00:46 +0100
committerRichard W.M. Jones <rjones@redhat.com>2009-05-01 11:00:46 +0100
commitac286b26df1aabceca26dac66c325a3676ace4cc (patch)
treee35289262967573c2ceb56ce67f66d7e678dba41 /perl/Guestfs.xs
parent3cb794463a62239e36d730bc5d2d3eb4c7a66096 (diff)
downloadlibguestfs-ac286b26df1aabceca26dac66c325a3676ace4cc.tar.gz
libguestfs-ac286b26df1aabceca26dac66c325a3676ace4cc.tar.xz
libguestfs-ac286b26df1aabceca26dac66c325a3676ace4cc.zip
Generated code for cp, cp-a and mv commands.
Diffstat (limited to 'perl/Guestfs.xs')
-rw-r--r--perl/Guestfs.xs36
1 files changed, 36 insertions, 0 deletions
diff --git a/perl/Guestfs.xs b/perl/Guestfs.xs
index f19b9d09..3c5f7138 100644
--- a/perl/Guestfs.xs
+++ b/perl/Guestfs.xs
@@ -1611,3 +1611,39 @@ PREINIT:
if (r == -1)
croak ("grub_install: %s", guestfs_last_error (g));
+void
+cp (g, src, dest)
+ guestfs_h *g;
+ char *src;
+ char *dest;
+PREINIT:
+ int r;
+ PPCODE:
+ r = guestfs_cp (g, src, dest);
+ if (r == -1)
+ croak ("cp: %s", guestfs_last_error (g));
+
+void
+cp_a (g, src, dest)
+ guestfs_h *g;
+ char *src;
+ char *dest;
+PREINIT:
+ int r;
+ PPCODE:
+ r = guestfs_cp_a (g, src, dest);
+ if (r == -1)
+ croak ("cp_a: %s", guestfs_last_error (g));
+
+void
+mv (g, src, dest)
+ guestfs_h *g;
+ char *src;
+ char *dest;
+PREINIT:
+ int r;
+ PPCODE:
+ r = guestfs_mv (g, src, dest);
+ if (r == -1)
+ croak ("mv: %s", guestfs_last_error (g));
+