X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=ocaml%2Fguestfs_c.c;h=f7d8dff8929072f4f9039a16934390fb9ad71d98;hp=80dcf9954f1a0fc28516b728e33645ba2c921400;hb=73c587ff0f2f8f76af39b16dafb0949be7bf0883;hpb=4125126085bd81bf96efc2cdbdec0f5596c6c9e8 diff --git a/ocaml/guestfs_c.c b/ocaml/guestfs_c.c index 80dcf99..f7d8dff 100644 --- a/ocaml/guestfs_c.c +++ b/ocaml/guestfs_c.c @@ -93,6 +93,17 @@ ocaml_guestfs_raise_error (guestfs_h *g, const char *func) CAMLnoreturn; } +void +ocaml_guestfs_raise_closed (const char *func) +{ + CAMLparam0 (); + CAMLlocal1 (v); + + v = caml_copy_string (func); + caml_raise_with_arg (*caml_named_value ("ocaml_guestfs_closed"), v); + CAMLnoreturn; +} + /* Guestfs.create */ CAMLprim value ocaml_guestfs_create (void)