From nobody Sat Feb 7 11:05:26 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 ARC-Seal: i=1; a=rsa-sha256; t=1566308717; cv=none; d=zoho.com; s=zohoarc; b=MPP+3OmZY0ufjxWtlnK0QqS5zBRbSt2MsPZZ4i2gXyEiQQipoYKemvV2Jvqsk4vyq42sthSQXmS2ktLpikL13bXGN5l/XX2nps7xZJWDLRxBvBQA49Sm3GIBzOtHu+5xf3KhhZB39jtrZDh/egS2GwFaUxEWtF/J4Eu07XzqTTs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566308717; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=i4L6bEniSKH2Q2uQ+oSexEshUg5fBEiILyDHiEQbfp8=; b=XctPkVBsf7hIys4Pu14FNjsKNMAtlLIcLOSMBL9Yw5aXAZPOENZcLR5GP0wRf8/GI7fCZQ76T/gHP/N8lUumJyVvDkINanF/3mcGmG68FQoLLThExg6I3p3mARM0F3ZhFAnuF0KiWYYWwuIqWmTyn5CtyjvKS3VFKvRZWkejIGw= ARC-Authentication-Results: i=1; mx.zoho.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 header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1566308717583188.10235477049252; Tue, 20 Aug 2019 06:45:17 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 292037F750; Tue, 20 Aug 2019 13:45:16 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E9FCF1715E; Tue, 20 Aug 2019 13:45:15 +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 98C2424F30; Tue, 20 Aug 2019 13:45:15 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x7KDjDhF025578 for ; Tue, 20 Aug 2019 09:45:13 -0400 Received: by smtp.corp.redhat.com (Postfix) id 13A7627CC0; Tue, 20 Aug 2019 13:45:13 +0000 (UTC) Received: from lindworm.usersys.redhat.com (unknown [10.43.2.5]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 67DBC2618A; Tue, 20 Aug 2019 13:45:12 +0000 (UTC) From: Pino Toscano To: libvir-list@redhat.com Date: Tue, 20 Aug 2019 15:44:54 +0200 Message-Id: <20190820134456.25560-2-ptoscano@redhat.com> In-Reply-To: <20190820134456.25560-1-ptoscano@redhat.com> References: <20190820134456.25560-1-ptoscano@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [ocaml PATCH 1/3] Synchronize Virterror with libvirt 5.6.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.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.71]); Tue, 20 Aug 2019 13:45:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Signed-off-by: Pino Toscano --- 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 =20 let string_of_code =3D function @@ -359,6 +362,9 @@ struct | 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_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 =20 type domain =3D @@ -432,6 +438,7 @@ struct | VIR_FROM_RESCTRL | VIR_FROM_FIREWALLD | VIR_FROM_DOMAIN_CHECKPOINT + | VIR_FROM_TPM | VIR_FROM_UNKNOWN of int =20 let string_of_domain =3D 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 =20 type level =3D 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 va= lues. *) @@ -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). */ =20 -#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 =20 static inline value --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list