[Pkg-libvirt-commits] [libguestfs] 17/78: ocaml: Add ESRCH to Guestfs.Errno module.

Hilko Bengen bengen at moszumanska.debian.org
Fri May 9 12:55:36 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit 5d4e4e7ecaafee6ad8c445f069b3b4c606ba013c
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Mon Mar 31 14:20:28 2014 +0100

    ocaml: Add ESRCH to Guestfs.Errno module.
---
 generator/ocaml.ml | 3 +++
 ocaml/guestfs-c.c  | 8 ++++++++
 2 files changed, 11 insertions(+)

diff --git a/generator/ocaml.ml b/generator/ocaml.ml
index 29a9eb6..bd27f7a 100644
--- a/generator/ocaml.ml
+++ b/generator/ocaml.ml
@@ -133,6 +133,7 @@ val last_errno : t -> int
 
 module Errno : sig
   val errno_ENOTSUP : int
+  val errno_ESRCH : int
 end
 
 ";
@@ -266,6 +267,8 @@ external last_errno : t -> int = \"ocaml_guestfs_last_errno\"
 module Errno = struct
   external enotsup : unit -> int = \"ocaml_guestfs_get_ENOTSUP\" \"noalloc\"
   let errno_ENOTSUP = enotsup ()
+  external esrch : unit -> int = \"ocaml_guestfs_get_ESRCH\" \"noalloc\"
+  let errno_ESRCH = esrch ()
 end
 
 (* Give the exceptions names, so they can be raised from the C code. *)
diff --git a/ocaml/guestfs-c.c b/ocaml/guestfs-c.c
index bd1ffb7..7fbe221 100644
--- a/ocaml/guestfs-c.c
+++ b/ocaml/guestfs-c.c
@@ -64,6 +64,7 @@ value ocaml_guestfs_delete_event_callback (value gv, value eh);
 value ocaml_guestfs_event_to_string (value events);
 value ocaml_guestfs_last_errno (value gv);
 value ocaml_guestfs_get_ENOTSUP (value unitv);
+value ocaml_guestfs_get_ESRCH (value unitv);
 
 /* Allocate handles and deal with finalization. */
 static void
@@ -446,3 +447,10 @@ ocaml_guestfs_get_ENOTSUP (value unitv)
 {
   return Val_int (ENOTSUP);
 }
+
+/* NB: "noalloc" function. */
+value
+ocaml_guestfs_get_ESRCH (value unitv)
+{
+  return Val_int (ESRCH);
+}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list