From: Ian Jackson Subject: Re: [PATCH 27 of 32 RFC] libxl: use defbool for graphics related options Date: Mon, 16 Jan 2012 16:26:22 +0000 Message-ID: <20244.20398.698055.75483@mariner.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[Xen-devel] [PATCH 27 of 32 RFC] libxl: use defbool for graphics related options"): > libxl: use defbool for graphics related options ... > diff -r 81def18dfda0 -r b8426902efa0 tools/ocaml/libs/xl/xenlight_stubs.c > --- a/tools/ocaml/libs/xl/xenlight_stubs.c Fri Jan 13 16:17:49 2012 +0000 > +++ b/tools/ocaml/libs/xl/xenlight_stubs.c Fri Jan 13 17:04:57 2012 +0000 > @@ -130,6 +130,19 @@ static int string_string_tuple_array_val > > #endif > > +/* Option type support as per http://www.linux-nantes.org/~fmonnier/ocaml/ocaml-wrapping-c.php */ > +#define Val_none Val_int(0) > +#define Some_val(v) Field(v,0) ... > +static value Val_some(value v) > +{ ... I wasn't expecting to find this at the end of this patch. Ian.