git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60dd949
)
perl: Add binding for guestfs_user_cancel.
author
Richard W.M. Jones
<rjones@redhat.com>
Fri, 15 Jul 2011 13:47:09 +0000
(14:47 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Fri, 15 Jul 2011 13:47:09 +0000
(14:47 +0100)
generator/generator_perl.ml
patch
|
blob
|
history
diff --git
a/generator/generator_perl.ml
b/generator/generator_perl.ml
index
e2ec254
..
f42bc87
100644
(file)
--- a/
generator/generator_perl.ml
+++ b/
generator/generator_perl.ml
@@
-277,6
+277,12
@@
PREINIT:
OUTPUT:
RETVAL
+void
+user_cancel (g)
+ guestfs_h *g;
+ PPCODE:
+ guestfs_user_cancel (g);
+
";
List.iter (
@@
-776,6
+782,11
@@
errnos:
# mkdir failed because the directory exists already.
}
+=item $h->user_cancel ();
+
+Cancel current transfer. This is safe to call from Perl signal
+handlers and threads.
+
=cut
";