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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]