[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 27 of 32 RFC] libxl: use defbool for graphics related options
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. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |