X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=ocaml%2Fguestfs_c.c;h=f7d8dff8929072f4f9039a16934390fb9ad71d98;hp=80dcf9954f1a0fc28516b728e33645ba2c921400;hb=79125c4dea9c69d08b522ed7c85f26dc6ee1bcb3;hpb=e1f5472395b08033c60054e8f87f3c61126c4fa4 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)