[PATCH v2 1/2] Remove explicit enum from protocol structures

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

 



Explicit 'enum' keyword does not work with portablexdr-rpcgeb, causing its
parser to fail. Fix method is borrowed from virnetprotocol.x

Signed-off-by: Pavel Fedin <p.fedin@xxxxxxxxxxx>
---
 src/lxc/lxc_monitor_protocol.x   | 2 +-
 src/lxc_monitor_protocol-structs | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lxc/lxc_monitor_protocol.x b/src/lxc/lxc_monitor_protocol.x
index 3b66af5..205d7c2 100644
--- a/src/lxc/lxc_monitor_protocol.x
+++ b/src/lxc/lxc_monitor_protocol.x
@@ -30,7 +30,7 @@ enum virLXCMonitorExitStatus {
 };
 
 struct virLXCMonitorExitEventMsg {
-    enum virLXCMonitorExitStatus status;
+    virLXCMonitorExitStatus status;
 };
 
 struct virLXCMonitorInitEventMsg {
diff --git a/src/lxc_monitor_protocol-structs b/src/lxc_monitor_protocol-structs
index da72ec0..10c2af7 100644
--- a/src/lxc_monitor_protocol-structs
+++ b/src/lxc_monitor_protocol-structs
@@ -5,7 +5,7 @@ enum virLXCMonitorExitStatus {
         VIR_LXC_MONITOR_EXIT_STATUS_REBOOT = 2,
 };
 struct virLXCMonitorExitEventMsg {
-        enum virLXCMonitorExitStatus status;
+        virLXCMonitorExitStatus status;
 };
 struct virLXCMonitorInitEventMsg {
         uint64_t                   initpid;
-- 
1.9.5.msysgit.0

--
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]