summaryrefslogtreecommitdiffstats
path: root/ocaml/guestfs_c.h
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-04-08 22:52:11 +0100
committerRichard Jones <rjones@redhat.com>2009-04-08 22:52:11 +0100
commit13339826ea01f8dbd581b5d2544e7692171cf386 (patch)
treed231c776846060f93293d6ee1352d912a2f5d237 /ocaml/guestfs_c.h
parent94050e0344685b6916e21581e618ad3e85795008 (diff)
downloadlibguestfs-13339826ea01f8dbd581b5d2544e7692171cf386.tar.gz
libguestfs-13339826ea01f8dbd581b5d2544e7692171cf386.tar.xz
libguestfs-13339826ea01f8dbd581b5d2544e7692171cf386.zip
OCaml bindings compile.
Diffstat (limited to 'ocaml/guestfs_c.h')
-rw-r--r--ocaml/guestfs_c.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ocaml/guestfs_c.h b/ocaml/guestfs_c.h
index 52b5aeaa..3da41d05 100644
--- a/ocaml/guestfs_c.h
+++ b/ocaml/guestfs_c.h
@@ -19,6 +19,8 @@
#ifndef GUESTFS_OCAML_C_H
#define GUESTFS_OCAML_C_H
-
+#define Guestfs_val(v) (*((guestfs_h **)Data_custom_val(v)))
+extern void ocaml_guestfs_raise_error (guestfs_h *g, const char *func)
+ Noreturn;
#endif /* GUESTFS_OCAML_C_H */