perl: Add binding for guestfs_user_cancel.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 15 Jul 2011 13:47:09 +0000 (14:47 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 15 Jul 2011 13:47:09 +0000 (14:47 +0100)
generator/generator_perl.ml

index e2ec254..f42bc87 100644 (file)
@@ -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
 
 ";