[libvirt-go PATCH 2/3] Introduce DomainSaveImageXMLFlags constant

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

 



Signed-off-by: Erik Skultety <eskultet@xxxxxxxxxx>
---
 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 = DomainMigrateMaxSpeedFlags(C.VIR_DOMAIN_MIGRATE_MAX_SPEED_POSTCOPY)
 )
 
+type DomainSaveImageXMLFlags int
+
+const (
+	VIR_DOMAIN_SAVE_IMAGE_XML_SECURE = DomainSaveImageXMLFlags(C.VIR_DOMAIN_SAVE_IMAGE_XML_SECURE)
+)
+
 type VcpuState int
 
 const (
@@ -4677,7 +4683,7 @@ func (d *Domain) ManagedSaveDefineXML(xml string, flags uint32) error {
 }
 
 // See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainManagedSaveGetXMLDesc
-func (d *Domain) ManagedSaveGetXMLDesc(flags uint32) (string, error) {
+func (d *Domain) ManagedSaveGetXMLDesc(flags DomainSaveImageXMLFlags) (string, 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
 
+#ifndef VIR_DOMAIN_SAVE_IMAGE_XML_SECURE
+#define VIR_DOMAIN_SAVE_IMAGE_XML_SECURE (1 << 0)
+#endif
+
 #endif /* LIBVIRT_GO_DOMAIN_COMPAT_H__ */
-- 
2.20.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux