From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: [PATCH 09/29] libxl: New error codes CANCELLED etc. Date: Tue, 10 Feb 2015 20:09:56 +0000 Message-ID: <1423599016-32639-10-git-send-email-ian.jackson@eu.citrix.com> References: <1423599016-32639-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: <1423599016-32639-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 , Euan Harris 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 --- v2: Rebase means new errors have bigger (more negative) numbers. --- 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 02be466..193f22a 100644 --- a/tools/libxl/libxl_types.idl +++ b/tools/libxl/libxl_types.idl @@ -63,6 +63,9 @@ libxl_error = Enumeration("error", [ (-17, "DEVICE_EXISTS"), (-18, "REMUS_DEVOPS_DOES_NOT_MATCH"), (-19, "REMUS_DEVICE_NOT_SUPPORTED"), + (-20, "CANCELLED"), + (-21, "NOTFOUND"), + (-22, "NOTIMPLEMENTED"), ], value_namespace = "") libxl_domain_type = Enumeration("domain_type", [ -- 1.7.10.4