From nobody Mon Feb 9 12:12:06 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 1550849567434884.5127401887619; Fri, 22 Feb 2019 07:32:47 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 80FCC3024EA2; Fri, 22 Feb 2019 15:32:44 +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 3029F601A1; Fri, 22 Feb 2019 15:32:44 +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 5E03741F3E; Fri, 22 Feb 2019 15:32:43 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x1MFWeVK009237 for ; Fri, 22 Feb 2019 10:32:40 -0500 Received: by smtp.corp.redhat.com (Postfix) id 83A035D9E1; Fri, 22 Feb 2019 15:32:40 +0000 (UTC) Received: from beluga.usersys.redhat.com (unknown [10.43.2.166]) by smtp.corp.redhat.com (Postfix) with ESMTP id D45875D9D5; Fri, 22 Feb 2019 15:32:39 +0000 (UTC) From: Erik Skultety To: libvir-list@redhat.com Date: Fri, 22 Feb 2019 16:32:29 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: Erik Skultety Subject: [libvirt] [libvirt-go PATCH 2/3] Introduce DomainSaveImageXMLFlags constant 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.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Fri, 22 Feb 2019 15:32:46 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Signed-off-by: Erik Skultety --- domain.go | 8 +++++++- domain_compat.h | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/domain.go b/domain.go index 91b8399..9211b6e 100644 --- a/domain.go +++ b/domain.go @@ -817,6 +817,12 @@ const ( MIGRATE_MAX_SPEED_POSTCOPY =3D DomainMigrateMaxSpeedFlags(C.VIR_DOMAIN_MI= GRATE_MAX_SPEED_POSTCOPY) ) =20 +type DomainSaveImageXMLFlags int + +const ( + VIR_DOMAIN_SAVE_IMAGE_XML_SECURE =3D DomainSaveImageXMLFlags(C.VIR_DOMAIN= _SAVE_IMAGE_XML_SECURE) +) + type VcpuState int =20 const ( @@ -4677,7 +4683,7 @@ func (d *Domain) ManagedSaveDefineXML(xml string, fla= gs uint32) error { } =20 // See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomain= ManagedSaveGetXMLDesc -func (d *Domain) ManagedSaveGetXMLDesc(flags uint32) (string, error) { +func (d *Domain) ManagedSaveGetXMLDesc(flags DomainSaveImageXMLFlags) (str= ing, error) { if C.LIBVIR_VERSION_NUMBER < 3007000 { return "", makeNotImplementedError("virDomainManagedSaveGetXMLDesc") } diff --git a/domain_compat.h b/domain_compat.h index d5a3f78..be6f1c4 100644 --- a/domain_compat.h +++ b/domain_compat.h @@ -952,4 +952,8 @@ struct _virDomainInterface { #define VIR_DOMAIN_SNAPSHOT_XML_SECURE (1 << 0) #endif =20 +#ifndef VIR_DOMAIN_SAVE_IMAGE_XML_SECURE +#define VIR_DOMAIN_SAVE_IMAGE_XML_SECURE (1 << 0) +#endif + #endif /* LIBVIRT_GO_DOMAIN_COMPAT_H__ */ --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list