[PATCH 2/8] UndefineFlags: Define the public API

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

 



Only support to remove domain managed state file when undefining
the domain currently.
---
 include/libvirt/libvirt.h.in |   10 ++++++++++
 python/generator.py          |    1 +
 src/libvirt_public.syms      |    5 +++++
 3 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in
index d5a7105..98f1454 100644
--- a/include/libvirt/libvirt.h.in
+++ b/include/libvirt/libvirt.h.in
@@ -1200,6 +1200,16 @@ int                     virDomainMemoryPeek (virDomainPtr dom,
 virDomainPtr            virDomainDefineXML      (virConnectPtr conn,
                                                  const char *xml);
 int                     virDomainUndefine       (virDomainPtr domain);
+
+/* Domain undefine flags */
+typedef enum {
+    VIR_DOMAIN_UNDEFINE_MANAGED_STATE = 1,
+
+    /* Future undefine control flags should come here */
+} virDomainUndefineFlags;
+
+int                     virDomainUndefineWithFlags  (virDomainPtr domain,
+                                                     unsigned int flags);
 int                     virConnectNumOfDefinedDomains  (virConnectPtr conn);
 int                     virConnectListDefinedDomains (virConnectPtr conn,
                                                  char **const names,
diff --git a/python/generator.py b/python/generator.py
index c27ff73..0510ec0 100755
--- a/python/generator.py
+++ b/python/generator.py
@@ -366,6 +366,7 @@ skip_impl = (
     'virDomainSendKey',
     'virNodeGetCPUStats',
     'virNodeGetMemoryStats',
+    'virDomainUndefineWithFlags',
 )
 
 
diff --git a/src/libvirt_public.syms b/src/libvirt_public.syms
index 5f2541a..54e0131 100644
--- a/src/libvirt_public.syms
+++ b/src/libvirt_public.syms
@@ -466,4 +466,9 @@ LIBVIRT_0.9.3 {
         virNodeGetMemoryStats;
 } LIBVIRT_0.9.2;
 
+LIBVIRT_0.9.4 {
+    global:
+        virDomainUndefineWithFlags;
+} LIBVIRT_0.9.3;
+
 # .... define new API here using predicted next version number ....
-- 
1.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]