[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH RFC 1/9] libxl idl: add comments to error enum
On Wed, 2015-06-24 at 14:47 +0100, Rob Hoes wrote: > Signed-off-by: Rob Hoes <rob.hoes@xxxxxxxxxx> > --- > 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@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |