From: Wei Liu Subject: Re: [PATCH 11/35] libxl: New error codes ABORTED etc. Date: Fri, 26 Jun 2015 15:13:21 +0100 Message-ID: <20150626141321.GD6265@zion.uk.xensource.com> References: <1435254275-8184-1-git-send-email-ian.jackson@eu.citrix.com> <1435254275-8184-12-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1435254275-8184-12-git-send-email-ian.jackson@eu.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: Ian Jackson Cc: Wei Liu , xen-devel@lists.xensource.com, Euan Harris , Ian Campbell List-Id: xen-devel@lists.xenproject.org On Thu, Jun 25, 2015 at 06:44:11PM +0100, Ian Jackson wrote: > We introduce ERROR_ABORTED now, so that we can write code to handle > it, and decreee that functions might return it, even though currently > there is nowhere where this error is generated. > > While we're here, provide ERROR_NOTFOUND which will also be used > later, but only as part of the public API. > > Signed-off-by: Ian Jackson Acked-by: Wei Liu > --- > v4: CANCELLED renamed to ABORTED. > No longer introduce ERROR_NOTIMPLEMENTED. > v2: Rebase means new errors have bigger (more negative) numbers. > --- > tools/libxl/libxl_types.idl | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl > index 23f27d4..9558d52 100644 > --- a/tools/libxl/libxl_types.idl > +++ b/tools/libxl/libxl_types.idl > @@ -65,6 +65,8 @@ libxl_error = Enumeration("error", [ > (-19, "REMUS_DEVICE_NOT_SUPPORTED"), > (-20, "VNUMA_CONFIG_INVALID"), > (-21, "DOMAIN_NOTFOUND"), > + (-22, "ABORTED"), > + (-23, "NOTFOUND"), > ], value_namespace = "") > > libxl_domain_type = Enumeration("domain_type", [ > -- > 1.7.10.4