From nobody Mon Feb 9 10:57:47 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 15508495819721022.1135242124341; Fri, 22 Feb 2019 07:33:01 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2F8FA5D5EF; Fri, 22 Feb 2019 15:33:00 +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 04A6960BF4; Fri, 22 Feb 2019 15:33:00 +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 B739F181A00D; Fri, 22 Feb 2019 15:32:59 +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 x1MFWdhb009232 for ; Fri, 22 Feb 2019 10:32:39 -0500 Received: by smtp.corp.redhat.com (Postfix) id 820195D9E2; Fri, 22 Feb 2019 15:32:39 +0000 (UTC) Received: from beluga.usersys.redhat.com (unknown [10.43.2.166]) by smtp.corp.redhat.com (Postfix) with ESMTP id D1E265D9D5; Fri, 22 Feb 2019 15:32:38 +0000 (UTC) From: Erik Skultety To: libvir-list@redhat.com Date: Fri, 22 Feb 2019 16:32:28 +0100 Message-Id: <36ef867d031eb44352a65b3f22baf7708f33038a.1550849325.git.eskultet@redhat.com> 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 1/3] Introduce DomainSnapshotXMLFlags 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.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 22 Feb 2019 15:33:00 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Signed-off-by: Erik Skultety --- domain_compat.h | 4 ++++ domain_snapshot.go | 6 ++++++ domain_snapshot_wrapper.h | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/domain_compat.h b/domain_compat.h index 9a30e8f..d5a3f78 100644 --- a/domain_compat.h +++ b/domain_compat.h @@ -948,4 +948,8 @@ struct _virDomainInterface { #define VIR_DOMAIN_MIGRATE_MAX_SPEED_POSTCOPY (1 << 0) #endif =20 +#ifndef VIR_DOMAIN_SNAPSHOT_XML_SECURE +#define VIR_DOMAIN_SNAPSHOT_XML_SECURE (1 << 0) +#endif + #endif /* LIBVIRT_GO_DOMAIN_COMPAT_H__ */ diff --git a/domain_snapshot.go b/domain_snapshot.go index 65fbbb5..86c7c51 100644 --- a/domain_snapshot.go +++ b/domain_snapshot.go @@ -84,6 +84,12 @@ const ( DOMAIN_SNAPSHOT_DELETE_CHILDREN_ONLY =3D DomainSnapshotDeleteFlags(C.VIR_= DOMAIN_SNAPSHOT_DELETE_CHILDREN_ONLY) ) =20 +type DomainSnapshotXMLFlags int + +const ( + DOMAIN_SNAPSHOT_XML_SECURE =3D DomainSnapshotXMLFlags(C.VIR_DOMAIN_S= NAPSHOT_XML_SECURE) +) + type DomainSnapshot struct { ptr C.virDomainSnapshotPtr } diff --git a/domain_snapshot_wrapper.h b/domain_snapshot_wrapper.h index fcf8036..b2e5cc5 100644 --- a/domain_snapshot_wrapper.h +++ b/domain_snapshot_wrapper.h @@ -28,7 +28,7 @@ =20 #include #include - +#include "domain_compat.h" =20 int virDomainRevertToSnapshotWrapper(virDomainSnapshotPtr snapshot, --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list