summaryrefslogtreecommitdiffstats
path: root/ocaml/guestfs_c_actions.c
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-05-08 15:20:36 +0100
committerRichard Jones <rjones@redhat.com>2009-05-08 15:20:36 +0100
commit15e0fd573a87488c66cb3a6f0da01f3ab5f2f6ed (patch)
treecf462fcc7f390c56be66ba6fb72fbfd79ccbc598 /ocaml/guestfs_c_actions.c
parent77c3f9d0ed25218fc3f24cee083a2083157d8e0a (diff)
downloadlibguestfs-15e0fd573a87488c66cb3a6f0da01f3ab5f2f6ed.tar.gz
libguestfs-15e0fd573a87488c66cb3a6f0da01f3ab5f2f6ed.tar.xz
libguestfs-15e0fd573a87488c66cb3a6f0da01f3ab5f2f6ed.zip
Generated code to support last 3 commits.
Diffstat (limited to 'ocaml/guestfs_c_actions.c')
-rw-r--r--ocaml/guestfs_c_actions.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/ocaml/guestfs_c_actions.c b/ocaml/guestfs_c_actions.c
index a707897a..fa352fcc 100644
--- a/ocaml/guestfs_c_actions.c
+++ b/ocaml/guestfs_c_actions.c
@@ -800,6 +800,28 @@ ocaml_guestfs_set_ready (value gv)
}
CAMLprim value
+ocaml_guestfs_end_busy (value gv)
+{
+ CAMLparam1 (gv);
+ CAMLlocal1 (rv);
+
+ guestfs_h *g = Guestfs_val (gv);
+ if (g == NULL)
+ caml_failwith ("end_busy: used handle after closing it");
+
+ int r;
+
+ caml_enter_blocking_section ();
+ r = guestfs_end_busy (g);
+ caml_leave_blocking_section ();
+ if (r == -1)
+ ocaml_guestfs_raise_error (g, "end_busy");
+
+ rv = Val_unit;
+ CAMLreturn (rv);
+}
+
+CAMLprim value
ocaml_guestfs_mount (value gv, value devicev, value mountpointv)
{
CAMLparam3 (gv, devicev, mountpointv);