Xen: add XENXL to virErrorDomain enum

Add "Xen XL Config" to the virErrorDomain enum and use it in
src/xenconfig/xen_xl.c.
This commit is contained in:
Jim Fehlig 2016-01-20 11:51:55 -07:00
parent 7d3698b47c
commit 8c3c32f16a
3 changed files with 3 additions and 1 deletions

View 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

View File

@ -135,6 +135,7 @@ VIR_ENUM_IMPL(virErrorDomain, VIR_ERR_DOMAIN_LAST,
"Thread jobs",
"Admin Interface",
"Log Manager",
"Xen XL Config",
)

View 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,