From: Ian Campbell Subject: Re: [PATCH v4 23/27] libxl: ocaml: add VM lifecycle operations Date: Mon, 11 Nov 2013 14:50:51 +0000 Message-ID: <1384181451.19117.41.camel@kazak.uk.xensource.com> References: <1383760205-20397-1-git-send-email-rob.hoes@citrix.com> <1383760205-20397-24-git-send-email-rob.hoes@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1383760205-20397-24-git-send-email-rob.hoes@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Rob Hoes Cc: ian.jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2013-11-06 at 17:50 +0000, Rob Hoes wrote: > + if (async != Val_none) { > + ao_how->callback = async_callback; > + ao_how->u.for_callback = (void *) Some_val(async); > + CAMLreturnT(libxl_asyncop_how *, ao_how); > + } > + else > + CAMLreturnT(libxl_asyncop_how *, NULL); This doesn't appear to be in my caml headers on Debian Wheezy (3.12.1-4). A random hit on google http://docs.camlcity.org/docs/godisrc/oasis-ocaml-fd-1.1.1.tar.gz/ocaml-fd-1.1.1/lib/fd_stubs.c suggests this was new in 3.09.4 so why don't I have it? We would really like to keep this stuff working with some of the more common distro's stable versions of ocaml, so if this is really missing then perhaps a compat version would be needed? WTF is it doing anyway? Something to do with this C struct pointer containing a Value? Ian.