]> xenbits.xensource.com Git - libvirt.git/commitdiff
Xen: add XENXL to virErrorDomain enum
authorJim Fehlig <jfehlig@suse.com>
Wed, 20 Jan 2016 18:51:55 +0000 (11:51 -0700)
committerJim Fehlig <jfehlig@suse.com>
Thu, 21 Jan 2016 16:31:39 +0000 (09:31 -0700)
Add "Xen XL Config" to the virErrorDomain enum and use it in
src/xenconfig/xen_xl.c.

include/libvirt/virterror.h
src/util/virerror.c
src/xenconfig/xen_xl.c

index 0539e489912519df3eea5efbadad3f6bcb0f8cca..c6d1a761fb6e008e9d64b522f3cd069aa478e8a6 100644 (file)
@@ -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
index 098211ac1fe2436a396a7d19818b3f2f8dd1e1e2..3a3ddeff09178125e3d1af6ba889afe15dddde34 100644 (file)
@@ -135,6 +135,7 @@ VIR_ENUM_IMPL(virErrorDomain, VIR_ERR_DOMAIN_LAST,
               "Thread jobs",
               "Admin Interface",
               "Log Manager",
+              "Xen XL Config",
     )
 
 
index 91cdff6839901aed97ae69a6e46d0d8db3455650..026cbcc100c027f1c79c5b1f3fef3147bfed9c36 100644 (file)
@@ -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,