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

[libvirt] [ocaml PATCH 1/3] Synchronize Virterror with libvirt 5.6.0



Signed-off-by: Pino Toscano <ptoscano redhat com>
---
 libvirt/libvirt.ml           | 8 ++++++++
 libvirt/libvirt.mli          | 4 ++++
 libvirt/libvirt_c_epilogue.c | 4 ++--
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/libvirt/libvirt.ml b/libvirt/libvirt.ml
index d935bfc..03a5af8 100644
--- a/libvirt/libvirt.ml
+++ b/libvirt/libvirt.ml
@@ -251,6 +251,9 @@ struct
     | VIR_ERR_INVALID_DOMAIN_CHECKPOINT
     | VIR_ERR_NO_DOMAIN_CHECKPOINT
     | VIR_ERR_NO_DOMAIN_BACKUP
+    | VIR_ERR_INVALID_NETWORK_PORT
+    | VIR_ERR_NETWORK_PORT_EXIST
+    | VIR_ERR_NO_NETWORK_PORT
     | VIR_ERR_UNKNOWN of int
 
   let string_of_code = function
@@ -359,6 +362,9 @@ struct
     | 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_INVALID_NETWORK_PORT -> "VIR_ERR_INVALID_NETWORK_PORT"
+    | VIR_ERR_NETWORK_PORT_EXIST -> "VIR_ERR_NETWORK_PORT_EXIST"
+    | VIR_ERR_NO_NETWORK_PORT -> "VIR_ERR_NO_NETWORK_PORT"
     | VIR_ERR_UNKNOWN i -> "VIR_ERR_" ^ string_of_int i
 
   type domain =
@@ -432,6 +438,7 @@ struct
     | VIR_FROM_RESCTRL
     | VIR_FROM_FIREWALLD
     | VIR_FROM_DOMAIN_CHECKPOINT
+    | VIR_FROM_TPM
     | VIR_FROM_UNKNOWN of int
 
   let string_of_domain = function
@@ -505,6 +512,7 @@ struct
     | VIR_FROM_RESCTRL -> "VIR_FROM_RESCTRL"
     | VIR_FROM_FIREWALLD -> "VIR_FROM_FIREWALLD"
     | VIR_FROM_DOMAIN_CHECKPOINT -> "VIR_FROM_DOMAIN_CHECKPOINT"
+    | VIR_FROM_TPM -> "VIR_FROM_TPM"
     | VIR_FROM_UNKNOWN i -> "VIR_FROM_" ^ string_of_int i
 
   type level =
diff --git a/libvirt/libvirt.mli b/libvirt/libvirt.mli
index fc5a1fc..72e83f9 100644
--- a/libvirt/libvirt.mli
+++ b/libvirt/libvirt.mli
@@ -1481,6 +1481,9 @@ sig
     | VIR_ERR_INVALID_DOMAIN_CHECKPOINT
     | VIR_ERR_NO_DOMAIN_CHECKPOINT
     | VIR_ERR_NO_DOMAIN_BACKUP
+    | VIR_ERR_INVALID_NETWORK_PORT
+    | VIR_ERR_NETWORK_PORT_EXIST
+    | VIR_ERR_NO_NETWORK_PORT
 	(* ^^ 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. *)
@@ -1559,6 +1562,7 @@ sig
     | VIR_FROM_RESCTRL
     | VIR_FROM_FIREWALLD
     | VIR_FROM_DOMAIN_CHECKPOINT
+    | VIR_FROM_TPM
 	(* ^^ 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 4d45629..37efc43 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 104 /* VIR_ERR_NO_DOMAIN_BACKUP */
-#define MAX_VIR_DOMAIN 69 /* VIR_FROM_DOMAIN_CHECKPOINT */
+#define MAX_VIR_CODE 107 /* VIR_ERR_NO_NETWORK_PORT */
+#define MAX_VIR_DOMAIN 70 /* VIR_FROM_TPM */
 #define MAX_VIR_LEVEL VIR_ERR_ERROR
 
 static inline value
-- 
2.21.0


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