On Wed, 2015-06-24 at 14:47 +0100, Rob Hoes wrote: > Signed-off-by: Rob Hoes <rob.h...@citrix.com> > --- > tools/libxl/libxl_types.idl | 41 +++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 41 insertions(+) > > diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl > index 65d479f..6dc18fa 100644 > --- a/tools/libxl/libxl_types.idl > +++ b/tools/libxl/libxl_types.idl > @@ -44,26 +44,67 @@ MemKB = UInt(64, init_val = "LIBXL_MEMKB_DEFAULT", > json_gen_fn = "libxl__uint64_ > # > > libxl_error = Enumeration("error", [ > + # Generic failure; code should be avoided (often seen as "rc = -1") > (-1, "NONSPECIFIC"),
I wonder if we should extend the Enumeration IDL support to have an optional 3rd field (or a named param) containing a textual description, which could then be used to autogenerate an analogue of sterrror(3) for enums which include such things? _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel