[ocaml PATCH 3/3] Synchronize Virterror with libvirt 5.2.0

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

 



Signed-off-by: Pino Toscano <ptoscano@xxxxxxxxxx>
---
 libvirt/libvirt.ml           | 10 ++++++++++
 libvirt/libvirt.mli          |  5 +++++
 libvirt/libvirt_c_epilogue.c |  4 ++--
 3 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/libvirt/libvirt.ml b/libvirt/libvirt.ml
index c7c5ffc..d935bfc 100644
--- a/libvirt/libvirt.ml
+++ b/libvirt/libvirt.ml
@@ -248,6 +248,9 @@ struct
     | VIR_ERR_DEVICE_MISSING
     | VIR_ERR_INVALID_NWFILTER_BINDING
     | VIR_ERR_NO_NWFILTER_BINDING
+    | VIR_ERR_INVALID_DOMAIN_CHECKPOINT
+    | VIR_ERR_NO_DOMAIN_CHECKPOINT
+    | VIR_ERR_NO_DOMAIN_BACKUP
     | VIR_ERR_UNKNOWN of int
 
   let string_of_code = function
@@ -353,6 +356,9 @@ struct
     | VIR_ERR_DEVICE_MISSING -> "VIR_ERR_DEVICE_MISSING"
     | VIR_ERR_INVALID_NWFILTER_BINDING -> "VIR_ERR_INVALID_NWFILTER_BINDING"
     | VIR_ERR_NO_NWFILTER_BINDING -> "VIR_ERR_NO_NWFILTER_BINDING"
+    | VIR_ERR_INVALID_DOMAIN_CHECKPOINT -> "VIR_ERR_INVALID_DOMAIN_CHECKPOINT"
+    | VIR_ERR_NO_DOMAIN_CHECKPOINT -> "VIR_ERR_NO_DOMAIN_CHECKPOINT"
+    | VIR_ERR_NO_DOMAIN_BACKUP -> "VIR_ERR_NO_DOMAIN_BACKUP"
     | VIR_ERR_UNKNOWN i -> "VIR_ERR_" ^ string_of_int i
 
   type domain =
@@ -424,6 +430,8 @@ struct
     | VIR_FROM_PERF
     | VIR_FROM_LIBSSH
     | VIR_FROM_RESCTRL
+    | VIR_FROM_FIREWALLD
+    | VIR_FROM_DOMAIN_CHECKPOINT
     | VIR_FROM_UNKNOWN of int
 
   let string_of_domain = function
@@ -495,6 +503,8 @@ struct
     | VIR_FROM_PERF -> "VIR_FROM_PERF"
     | VIR_FROM_LIBSSH -> "VIR_FROM_LIBSSH"
     | VIR_FROM_RESCTRL -> "VIR_FROM_RESCTRL"
+    | VIR_FROM_FIREWALLD -> "VIR_FROM_FIREWALLD"
+    | VIR_FROM_DOMAIN_CHECKPOINT -> "VIR_FROM_DOMAIN_CHECKPOINT"
     | VIR_FROM_UNKNOWN i -> "VIR_FROM_" ^ string_of_int i
 
   type level =
diff --git a/libvirt/libvirt.mli b/libvirt/libvirt.mli
index 7448722..fc5a1fc 100644
--- a/libvirt/libvirt.mli
+++ b/libvirt/libvirt.mli
@@ -1478,6 +1478,9 @@ sig
     | VIR_ERR_DEVICE_MISSING
     | VIR_ERR_INVALID_NWFILTER_BINDING
     | VIR_ERR_NO_NWFILTER_BINDING
+    | VIR_ERR_INVALID_DOMAIN_CHECKPOINT
+    | VIR_ERR_NO_DOMAIN_CHECKPOINT
+    | VIR_ERR_NO_DOMAIN_BACKUP
 	(* ^^ NB: If you add a variant you MUST edit
 	   libvirt_c_epilogue.c:MAX_VIR_* *)
     | VIR_ERR_UNKNOWN of int (** Other error, not handled with existing values. *)
@@ -1554,6 +1557,8 @@ sig
     | VIR_FROM_PERF
     | VIR_FROM_LIBSSH
     | VIR_FROM_RESCTRL
+    | VIR_FROM_FIREWALLD
+    | VIR_FROM_DOMAIN_CHECKPOINT
 	(* ^^ NB: If you add a variant you MUST edit
 	   libvirt_c_epilogue.c: MAX_VIR_* *)
     | VIR_FROM_UNKNOWN of int (** Other domain, not handled with existing values. *)
diff --git a/libvirt/libvirt_c_epilogue.c b/libvirt/libvirt_c_epilogue.c
index 4e75d2f..4d45629 100644
--- a/libvirt/libvirt_c_epilogue.c
+++ b/libvirt/libvirt_c_epilogue.c
@@ -143,8 +143,8 @@ Val_virconnectcredential (const virConnectCredentialPtr cred)
  * to convert it into VIR_*_UNKNOWN (code).
  */
 
-#define MAX_VIR_CODE 101 /* VIR_ERR_NO_NWFILTER_BINDING */
-#define MAX_VIR_DOMAIN 67 /* VIR_FROM_RESCTRL */
+#define MAX_VIR_CODE 104 /* VIR_ERR_NO_DOMAIN_BACKUP */
+#define MAX_VIR_DOMAIN 69 /* VIR_FROM_DOMAIN_CHECKPOINT */
 #define MAX_VIR_LEVEL VIR_ERR_ERROR
 
 static inline value
-- 
2.20.1

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

  Powered by Linux