diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2009-05-01 11:00:46 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2009-05-01 11:00:46 +0100 |
commit | ac286b26df1aabceca26dac66c325a3676ace4cc (patch) | |
tree | e35289262967573c2ceb56ce67f66d7e678dba41 /perl/Guestfs.xs | |
parent | 3cb794463a62239e36d730bc5d2d3eb4c7a66096 (diff) | |
download | libguestfs-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.xs | 36 |
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)); + |