[libvirt] [RFC PATCH 3/7] virterror: Adding a new VIR_FROM_ define

Adam Walters adam at pandorasboxen.com
Sat Dec 21 04:03:56 UTC 2013


This patch adds VIR_FROM_CONFIG to the virErrorDomain enum. Both of these files must be patched in unison to prevent compilation failures.

Signed-off-by: Adam Walters <adam at pandorasboxen.com>
---
 include/libvirt/virterror.h | 2 ++
 src/util/virerror.c         | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/include/libvirt/virterror.h b/include/libvirt/virterror.h
index e31e9c4..018c880 100644
--- a/include/libvirt/virterror.h
+++ b/include/libvirt/virterror.h
@@ -121,6 +121,8 @@ typedef enum {
     VIR_FROM_ACCESS = 55,       /* Error from access control manager */
     VIR_FROM_SYSTEMD = 56,      /* Error from systemd code */
 
+    VIR_FROM_CONFIG = 57,	/* Error from config driver */
+
 # ifdef VIR_ENUM_SENTINELS
     VIR_ERR_DOMAIN_LAST
 # endif
diff --git a/src/util/virerror.c b/src/util/virerror.c
index d9a9fc4..04a3acf 100644
--- a/src/util/virerror.c
+++ b/src/util/virerror.c
@@ -124,6 +124,8 @@ VIR_ENUM_IMPL(virErrorDomain, VIR_ERR_DOMAIN_LAST,
 
               "Access Manager", /* 55 */
               "Systemd",
+
+              "Config Driver", /* 57 */
     )
 
 
-- 
1.8.5.2




More information about the libvir-list mailing list