From nobody Sun Feb 8 05:27:01 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 155448205179039.165483648872055; Fri, 5 Apr 2019 09:34:11 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D7A903002607; Fri, 5 Apr 2019 16:34:09 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8F21D60D5E; Fri, 5 Apr 2019 16:34:09 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id B9FEF181AC45; Fri, 5 Apr 2019 16:34:08 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x35GY72t008707 for ; Fri, 5 Apr 2019 12:34:07 -0400 Received: by smtp.corp.redhat.com (Postfix) id 4575D5F9A6; Fri, 5 Apr 2019 16:34:07 +0000 (UTC) Received: from thyrus.usersys.redhat.com (unknown [10.43.2.31]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9B36E5C1B4; Fri, 5 Apr 2019 16:34:06 +0000 (UTC) From: Pino Toscano To: libvir-list@redhat.com Date: Fri, 5 Apr 2019 18:33:55 +0200 Message-Id: <20190405163355.20522-4-ptoscano@redhat.com> In-Reply-To: <20190405163355.20522-1-ptoscano@redhat.com> References: <20190405163355.20522-1-ptoscano@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com Subject: [libvirt] [ocaml PATCH 3/3] Synchronize Virterror with libvirt 5.2.0 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Fri, 05 Apr 2019 16:34:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Signed-off-by: Pino Toscano --- 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 =20 let string_of_code =3D function @@ -353,6 +356,9 @@ struct | VIR_ERR_DEVICE_MISSING -> "VIR_ERR_DEVICE_MISSING" | VIR_ERR_INVALID_NWFILTER_BINDING -> "VIR_ERR_INVALID_NWFILTER_BINDIN= G" | VIR_ERR_NO_NWFILTER_BINDING -> "VIR_ERR_NO_NWFILTER_BINDING" + | VIR_ERR_INVALID_DOMAIN_CHECKPOINT -> "VIR_ERR_INVALID_DOMAIN_CHECKPO= INT" + | 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 =20 type domain =3D @@ -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 =20 let string_of_domain =3D 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 =20 type level =3D 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 va= lues. *) @@ -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). */ =20 -#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 =20 static inline value --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list