diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-12-30 12:46:16 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-12-30 12:46:16 +0000 |
commit | 94552247809fafcf8e71a76cb0ec9b864c46836e (patch) | |
tree | 4f8a74396ff62e1d86a176e7c61eb585b04bedbd | |
parent | 718547c77b448b2fa3962c514dcc2295d4db1d18 (diff) | |
download | xen-94552247809fafcf8e71a76cb0ec9b864c46836e.tar.gz xen-94552247809fafcf8e71a76cb0ec9b864c46836e.tar.bz2 xen-94552247809fafcf8e71a76cb0ec9b864c46836e.zip |
libxl: define errors as an enum instead of define random values.
Signed-off-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
-rw-r--r-- | tools/libxl/libxl.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/libxl/libxl.h b/tools/libxl/libxl.h index 7bfa4e5941..7318b5184d 100644 --- a/tools/libxl/libxl.h +++ b/tools/libxl/libxl.h @@ -226,10 +226,13 @@ typedef struct { bool power_mgmt; } libxl_device_pci; -#define ERROR_FAIL (-2) -#define ERROR_NI (-101) -#define ERROR_NOMEM (-1032) -#define ERROR_INVAL (-1245) +enum { + ERROR_VERSION = -1, + ERROR_FAIL = -2, + ERROR_NI = -3, + ERROR_NOMEM = -4, + ERROR_INVAL = -5, +}; /* context functions */ int libxl_ctx_init(struct libxl_ctx *ctx); |