[libvirt-glib 2/2] Add Flags for use with gvir_domain_delete()

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

 



From: "Zeeshan Ali (Khattak)" <zeeshanak@xxxxxxxxx>

---
 libvirt-gobject/libvirt-gobject-domain.h |   14 ++++++++++++++
 libvirt-gobject/libvirt-gobject.sym      |    1 +
 2 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/libvirt-gobject/libvirt-gobject-domain.h b/libvirt-gobject/libvirt-gobject-domain.h
index bdff32e..56500a8 100644
--- a/libvirt-gobject/libvirt-gobject-domain.h
+++ b/libvirt-gobject/libvirt-gobject-domain.h
@@ -30,6 +30,7 @@
 G_BEGIN_DECLS
 
 #include <libvirt-gobject/libvirt-gobject-stream.h>
+#include <libvirt/libvirt.h>
 
 #define GVIR_TYPE_DOMAIN            (gvir_domain_get_type ())
 #define GVIR_DOMAIN(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_TYPE_DOMAIN, GVirDomain))
@@ -88,6 +89,19 @@ typedef enum {
     GVIR_DOMAIN_START_FORCE_BOOT   = (1 << 3),
 } GVirDomainStartFlags;
 
+/**
+ * GVirDomainDeleteFlags:
+ * @GVIR_DOMAIN_DELETE_NONE: No flags
+ * @GVIR_DOMAIN_DELETE_SAVED_STATE: Also remove associated saved state (if present).
+ * @GVIR_DOMAIN_DELETE_SNAPSHOTS_METADATA: If last use of domain, then also
+ *                                         remove any snapshot metadata.
+ */
+typedef enum {
+    GVIR_DOMAIN_DELETE_NONE               = 0,
+    GVIR_DOMAIN_DELETE_SAVED_STATE        = VIR_DOMAIN_UNDEFINE_MANAGED_SAVE,
+    GVIR_DOMAIN_DELETE_SNAPSHOTS_METADATA = VIR_DOMAIN_UNDEFINE_SNAPSHOTS_METADATA,
+} GVirDomainDeleteFlags;
+
 typedef struct _GVirDomainInfo GVirDomainInfo;
 struct _GVirDomainInfo
 {
diff --git a/libvirt-gobject/libvirt-gobject.sym b/libvirt-gobject/libvirt-gobject.sym
index 9e63773..917ee99 100644
--- a/libvirt-gobject/libvirt-gobject.sym
+++ b/libvirt-gobject/libvirt-gobject.sym
@@ -46,6 +46,7 @@ LIBVIRT_GOBJECT_0.0.4 {
 	gvir_domain_info_get_type;
 	gvir_domain_state_get_type;
 	gvir_domain_start_flags_get_type;
+	gvir_domain_delete_flags_get_type;
 	gvir_domain_get_name;
 	gvir_domain_get_uuid;
 	gvir_domain_get_id;
-- 
1.7.7.6

--
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]