From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: [PATCH 07/14] libxl: New error codes CANCELLED etc. Date: Fri, 20 Dec 2013 18:45:45 +0000 Message-ID: <1387565152-5642-8-git-send-email-ian.jackson@eu.citrix.com> References: <21172.35652.484647.666791@mariner.uk.xensource.com> <1387565152-5642-1-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: In-Reply-To: <1387565152-5642-1-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: xen-devel@lists.xensource.com Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org We introduce ERROR_CANCELLED 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 and ERROR_NOTIMPLEMENTED, which will also be used later, but only as part of the public API. Signed-off-by: Ian Jackson squash! libxl: New error code CANCELLED --- tools/libxl/libxl_types.idl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl index 649ce50..9466bf9 100644 --- a/tools/libxl/libxl_types.idl +++ b/tools/libxl/libxl_types.idl @@ -43,6 +43,9 @@ libxl_error = Enumeration("error", [ (-12, "OSEVENT_REG_FAIL"), (-13, "BUFFERFULL"), (-14, "UNKNOWN_CHILD"), + (-15, "CANCELLED"), + (-16, "NOTFOUND"), + (-17, "NOTIMPLEMENTED"), ], value_namespace = "") libxl_domain_type = Enumeration("domain_type", [ -- 1.7.10.4