[libvirt-java] [PATCH 40/65] Add constants for enum virDomainEventID

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

 



Note: these are only used internally.

Signed-off-by: Claudio Bley <cbley@xxxxxxxxxx>
---
 src/main/java/org/libvirt/Connect.java |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/src/main/java/org/libvirt/Connect.java b/src/main/java/org/libvirt/Connect.java
index 0a45ac8..8ba9691 100644
--- a/src/main/java/org/libvirt/Connect.java
+++ b/src/main/java/org/libvirt/Connect.java
@@ -34,6 +34,26 @@ import com.sun.jna.ptr.LongByReference;
 public class Connect {
 
     /**
+     * Event IDs.
+     */
+    private interface DomainEventID {
+        static final int LIFECYCLE = 0;
+        static final int REBOOT = 1;
+        static final int RTC_CHANGE = 2;
+        static final int WATCHDOG = 3;
+        static final int IO_ERROR = 4;
+        static final int GRAPHICS = 5;
+        static final int IO_ERROR_REASON = 6;
+        static final int CONTROL_ERROR = 7;
+        static final int BLOCK_JOB = 8;
+        static final int DISK_CHANGE = 9;
+        static final int TRAY_CHANGE = 10;
+        static final int PMWAKEUP = 11;
+        static final int PMSUSPEND = 12;
+        static final int LAST = 13;
+    }
+
+    /**
      * Get the version of a connection.
      *
      * @see <a
-- 
1.7.9.5

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