From 8c3c32f16a553edb56ac8e2250ca1f7d85787f5c Mon Sep 17 00:00:00 2001 From: Jim Fehlig Date: Wed, 20 Jan 2016 11:51:55 -0700 Subject: [PATCH] Xen: add XENXL to virErrorDomain enum Add "Xen XL Config" to the virErrorDomain enum and use it in src/xenconfig/xen_xl.c. --- include/libvirt/virterror.h | 1 + src/util/virerror.c | 1 + src/xenconfig/xen_xl.c | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/libvirt/virterror.h b/include/libvirt/virterror.h index 0539e48991..c6d1a761fb 100644 --- a/include/libvirt/virterror.h +++ b/include/libvirt/virterror.h @@ -128,6 +128,7 @@ typedef enum { VIR_FROM_THREAD = 61, /* Error from thread utils */ VIR_FROM_ADMIN = 62, /* Error from admin backend */ VIR_FROM_LOGGING = 63, /* Error from log manager */ + VIR_FROM_XENXL = 64, /* Error from Xen xl config code */ # ifdef VIR_ENUM_SENTINELS VIR_ERR_DOMAIN_LAST diff --git a/src/util/virerror.c b/src/util/virerror.c index 098211ac1f..3a3ddeff09 100644 --- a/src/util/virerror.c +++ b/src/util/virerror.c @@ -135,6 +135,7 @@ VIR_ENUM_IMPL(virErrorDomain, VIR_ERR_DOMAIN_LAST, "Thread jobs", "Admin Interface", "Log Manager", + "Xen XL Config", ) diff --git a/src/xenconfig/xen_xl.c b/src/xenconfig/xen_xl.c index 91cdff6839..026cbcc100 100644 --- a/src/xenconfig/xen_xl.c +++ b/src/xenconfig/xen_xl.c @@ -33,7 +33,7 @@ #include "virstoragefile.h" #include "xen_xl.h" -#define VIR_FROM_THIS VIR_FROM_NONE +#define VIR_FROM_THIS VIR_FROM_XENXL /* * Xen provides a libxl utility library, with several useful functions,