Hello community,
here is the log from the commit of package python-libvirt-python for
openSUSE:Factory checked in at 2019-08-16 15:28:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-libvirt-python (Old)
and /work/SRC/openSUSE:Factory/.python-libvirt-python.new.22127 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-libvirt-python"
Fri Aug 16 15:28:01 2019 rev:25 rq:722939 version:5.6.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-libvirt-python/python-libvirt-python.changes
2019-07-31 14:12:43.478938126 +0200
+++
/work/SRC/openSUSE:Factory/.python-libvirt-python.new.22127/python-libvirt-python.changes
2019-08-16 15:28:05.562001099 +0200
@@ -1,0 +2,6 @@
+Mon Aug 12 22:26:41 UTC 2019 - James Fehlig <[email protected]>
+
+- Update to 5.6.0
+ - Add all new APIs and constants in libvirt 5.6.0
+
+-------------------------------------------------------------------
Old:
----
libvirt-python-5.5.0.tar.gz
libvirt-python-5.5.0.tar.gz.asc
New:
----
libvirt-python-5.6.0.tar.gz
libvirt-python-5.6.0.tar.gz.asc
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-libvirt-python.spec ++++++
--- /var/tmp/diff_new_pack.MD2GVZ/_old 2019-08-16 15:28:06.094000982 +0200
+++ /var/tmp/diff_new_pack.MD2GVZ/_new 2019-08-16 15:28:06.098000980 +0200
@@ -20,7 +20,7 @@
%define srcname libvirt-python
Name: python-libvirt-python
Url: https://libvirt.org/
-Version: 5.5.0
+Version: 5.6.0
Release: 0
Summary: Library providing a virtualization API
License: LGPL-2.1-or-later
++++++ libvirt-python-5.5.0.tar.gz -> libvirt-python-5.6.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-5.5.0/ChangeLog
new/libvirt-python-5.6.0/ChangeLog
--- old/libvirt-python-5.5.0/ChangeLog 2019-07-02 22:45:32.000000000 +0200
+++ new/libvirt-python-5.6.0/ChangeLog 2019-08-05 19:20:28.000000000 +0200
@@ -1,3 +1,48 @@
+2019-07-29 Eric Blake <[email protected]>
+
+ Define virDomainCheckpointPtr typedef on old libvirt
+ Needed prior to 5.6.0
+
+
+
+2019-07-29 Eric Blake <[email protected]>
+
+ Add virDomainCheckpoint APIs
+ Copies heavily from existing virDomainSnapshot handling, regarding
+ what special cases the generator has to be taught and what overrides
+ need to be written.
+
+ Reviewed-by: Daniel P. Berrangé <[email protected]>
+
+
+2019-07-09 Cole Robinson <[email protected]>
+
+ spec: Bump minimum supported Fedora version to 29
+ Reviewed-by: Fabiano FidĂȘncio <[email protected]>
+
+
+2019-07-09 Cole Robinson <[email protected]>
+
+ spec: Unconditionally build python2 on Fedora
+ In Fedora we are currently shipping python2 bindings for all builds,
+ so this conditional is out of date. Fedora 31 may be the time that
+ python2 bindings are dropped:
+
+ https://fedoraproject.org/wiki/Changes/F31_Mass_Python_2_Package_Removal
+
+ But I think it's better to wait for that to actually happen before
+ we change this again
+
+ Reviewed-by: Fabiano FidĂȘncio <[email protected]>
+
+
+2019-07-02 Daniel Veillard <[email protected]>
+
+ Release of libvirt-python 5.5.0
+ * setup.py: update for release
+
+
+
2019-06-26 Sergei Turchanov <[email protected]>
Fix regression in lxcOpenNamespace
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-5.5.0/PKG-INFO
new/libvirt-python-5.6.0/PKG-INFO
--- old/libvirt-python-5.5.0/PKG-INFO 2019-07-02 22:45:32.000000000 +0200
+++ new/libvirt-python-5.6.0/PKG-INFO 2019-08-05 19:20:28.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: libvirt-python
-Version: 5.5.0
+Version: 5.6.0
Summary: The libvirt virtualization API python binding
Home-page: http://www.libvirt.org
Author: Libvirt Maintainers
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-5.5.0/generator.py
new/libvirt-python-5.6.0/generator.py
--- old/libvirt-python-5.5.0/generator.py 2019-07-02 22:37:42.000000000
+0200
+++ new/libvirt-python-5.6.0/generator.py 2019-08-05 19:18:56.000000000
+0200
@@ -35,6 +35,7 @@
"libvirt",
"libvirt-common",
"libvirt-domain",
+ "libvirt-domain-checkpoint",
"libvirt-domain-snapshot",
"libvirt-event",
"libvirt-host",
@@ -368,6 +369,10 @@
'virStream *': ('O', "virStream", "virStreamPtr", "virStreamPtr"),
'const virStream *': ('O', "virStream", "virStreamPtr", "virStreamPtr"),
+ 'virDomainCheckpointPtr': ('O', "virDomainCheckpoint",
"virDomainCheckpointPtr", "virDomainCheckpointPtr"),
+ 'virDomainCheckpoint *': ('O', "virDomainCheckpoint",
"virDomainCheckpointPtr", "virDomainCheckpointPtr"),
+ 'const virDomainCheckpoint *': ('O', "virDomainCheckpoint",
"virDomainCheckpointPtr", "virDomainCheckpointPtr"),
+
'virDomainSnapshotPtr': ('O', "virDomainSnapshot",
"virDomainSnapshotPtr", "virDomainSnapshotPtr"),
'virDomainSnapshot *': ('O', "virDomainSnapshot", "virDomainSnapshotPtr",
"virDomainSnapshotPtr"),
'const virDomainSnapshot *': ('O', "virDomainSnapshot",
"virDomainSnapshotPtr", "virDomainSnapshotPtr"),
@@ -542,6 +547,8 @@
'virSaveLastError', # We have our own python error wrapper
'virFreeError', # Only needed if we use virSaveLastError
'virConnectListAllDomains', # overridden in virConnect.py
+ 'virDomainListAllCheckpoints', # overridden in virDomain.py
+ 'virDomainCheckpointListAllChildren', # overridden in
virDomainCheckpoint.py
'virDomainListAllSnapshots', # overridden in virDomain.py
'virDomainSnapshotListAllChildren', # overridden in virDomainSnapshot.py
'virConnectListAllStoragePools', # overridden in virConnect.py
@@ -590,6 +597,7 @@
"virStoragePoolRef",
"virStorageVolRef",
"virStreamRef",
+ "virDomainCheckpointRef",
"virDomainSnapshotRef",
# This functions shouldn't be called via the bindings (and even the docs
@@ -603,6 +611,8 @@
"virNWFilterGetConnect",
"virStoragePoolGetConnect",
"virStorageVolGetConnect",
+ "virDomainCheckpointGetConnect",
+ "virDomainCheckpointGetDomain",
"virDomainSnapshotGetConnect",
"virDomainSnapshotGetDomain",
@@ -1034,6 +1044,8 @@
"virStream *": ("._o", "virStream(self, _obj=%s)", "virStream"),
"virConnectPtr": ("._o", "virConnect(_obj=%s)", "virConnect"),
"virConnect *": ("._o", "virConnect(_obj=%s)", "virConnect"),
+ "virDomainCheckpointPtr": ("._o", "virDomainCheckpoint(self,_obj=%s)",
"virDomainCheckpoint"),
+ "virDomainCheckpoint *": ("._o", "virDomainCheckpoint(self, _obj=%s)",
"virDomainCheckpoint"),
"virDomainSnapshotPtr": ("._o", "virDomainSnapshot(self,_obj=%s)",
"virDomainSnapshot"),
"virDomainSnapshot *": ("._o", "virDomainSnapshot(self, _obj=%s)",
"virDomainSnapshot"),
}
@@ -1042,7 +1054,7 @@
"virInterface", "virStoragePool", "virStorageVol",
"virConnect", "virNodeDevice", "virSecret",
"virNWFilter", "virNWFilterBinding",
- "virStream", "virDomainSnapshot"]
+ "virStream", "virDomainCheckpoint", "virDomainSnapshot"]
classes_destructors = {
"virDomain": "virDomainFree",
@@ -1055,6 +1067,7 @@
"virSecret": "virSecretFree",
"virNWFilter": "virNWFilterFree",
"virNWFilterBinding": "virNWFilterBindingFree",
+ "virDomainCheckpoint": "virDomainCheckpointFree",
"virDomainSnapshot": "virDomainSnapshotFree",
# We hand-craft __del__ for this one
#"virStream": "virStreamFree",
@@ -1065,6 +1078,7 @@
}
class_domain_impl = {
+ "virDomainCheckpoint": True,
"virDomainSnapshot": True,
}
@@ -1189,6 +1203,15 @@
elif name[0:12] == "virDomainGet":
func = name[12:]
func = func[0:1].lower() + func[1:]
+ elif name[0:31] == "virDomainCheckpointLookupByName":
+ func = name[9:]
+ func = func[0:1].lower() + func[1:]
+ elif name[0:28] == "virDomainCheckpointCreateXML":
+ func = name[9:]
+ func = func[0:1].lower() + func[1:]
+ elif name[0:19] == "virDomainCheckpoint":
+ func = name[19:]
+ func = func[0:1].lower() + func[1:]
elif name[0:29] == "virDomainSnapshotLookupByName":
func = name[9:]
func = func[0:1].lower() + func[1:]
@@ -1525,7 +1548,7 @@
"virStorageVol", "virNodeDevice",
"virSecret","virStream",
"virNWFilter", "virNWFilterBinding" ]:
classes.write(" def __init__(self, conn, _obj=None):\n")
- elif classname in [ 'virDomainSnapshot' ]:
+ elif classname in [ "virDomainCheckpoint", "virDomainSnapshot" ]:
classes.write(" def __init__(self, dom, _obj=None):\n")
else:
classes.write(" def __init__(self, _obj=None):\n")
@@ -1537,7 +1560,7 @@
classes.write(" self._conn = conn\n" + \
" if not isinstance(conn, virConnect):\n"
+ \
" self._conn = conn._conn\n")
- elif classname in [ "virDomainSnapshot" ]:
+ elif classname in [ "virDomainCheckpoint", "virDomainSnapshot" ]:
classes.write(" self._dom = dom\n")
classes.write(" self._conn = dom.connect()\n")
classes.write(" if type(_obj).__name__ not in
[\"PyCapsule\", \"PyCObject\"]:\n")
@@ -1665,7 +1688,7 @@
classes.write(
" if ret is None:raise libvirtError('%s() failed',
vol=self)\n" %
(name))
- elif classname == "virDomainSnapshot":
+ elif classname in [ "virDomainCheckpoint",
"virDomainSnapshot"]:
classes.write(
" if ret is None:raise libvirtError('%s() failed',
dom=self._dom)\n" %
(name))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-5.5.0/libvirt-override-api.xml
new/libvirt-python-5.6.0/libvirt-override-api.xml
--- old/libvirt-python-5.5.0/libvirt-override-api.xml 2019-07-02
22:37:42.000000000 +0200
+++ new/libvirt-python-5.6.0/libvirt-override-api.xml 2019-08-05
19:18:56.000000000 +0200
@@ -576,6 +576,18 @@
<arg name='flags' type='unsigned int' info='flags'/>
<return type='int' info="0 on success, -1 on error"/>
</function>
+ <function name='virDomainListAllCheckpoints' file='python'>
+ <info>returns the list of checkpoints for the given domain</info>
+ <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
+ <arg name='flags' type='unsigned int' info='flags'/>
+ <return type='char *' info='the list of checkpoints or None in case of
error'/>
+ </function>
+ <function name='virDomainCheckpointListAllChildren' file='python'>
+ <info>collect the list of child checkpoint names for the given
checkpoint</info>
+ <arg name='checkpoint' type='virDomainCheckpointPtr' info='pointer to
the checkpoint'/>
+ <arg name='flags' type='unsigned int' info='flags'/>
+ <return type='char *' info='the list of checkpoints or None in case of
error'/>
+ </function>
<function name='virDomainGetBlockJobInfo' file='python'>
<info>Get progress information for a block job</info>
<arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-5.5.0/libvirt-override-virDomain.py
new/libvirt-python-5.6.0/libvirt-override-virDomain.py
--- old/libvirt-python-5.5.0/libvirt-override-virDomain.py 2018-09-03
19:31:03.000000000 +0200
+++ new/libvirt-python-5.6.0/libvirt-override-virDomain.py 2019-08-05
19:18:56.000000000 +0200
@@ -11,6 +11,19 @@
return retlist
+ def listAllCheckpoints(self, flags=0):
+ """List all checkpoints and returns a list of checkpoint objects"""
+ ret = libvirtmod.virDomainListAllCheckpoints(self._o, flags)
+ if ret is None:
+ raise libvirtError("virDomainListAllCheckpoints() failed",
conn=self)
+
+ retlist = list()
+ for chkptr in ret:
+ retlist.append(virDomainCheckpoint(self, _obj=chkptr))
+
+ return retlist
+
+
def createWithFiles(self, files, flags=0):
"""Launch a defined domain. If the call succeeds the domain moves from
the
defined to the running domains pools.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/libvirt-python-5.5.0/libvirt-override-virDomainCheckpoint.py
new/libvirt-python-5.6.0/libvirt-override-virDomainCheckpoint.py
--- old/libvirt-python-5.5.0/libvirt-override-virDomainCheckpoint.py
1970-01-01 01:00:00.000000000 +0100
+++ new/libvirt-python-5.6.0/libvirt-override-virDomainCheckpoint.py
2019-08-05 19:18:56.000000000 +0200
@@ -0,0 +1,19 @@
+ def getConnect(self):
+ """Get the connection that owns the domain that a checkpoint was
created for"""
+ return self.connect()
+
+ def getDomain(self):
+ """Get the domain that a checkpoint was created for"""
+ return self.domain()
+
+ def listAllChildren(self, flags=0):
+ """List all child checkpoints and returns a list of checkpoint
objects"""
+ ret = libvirtmod.virDomainCheckpointListAllChildren(self._o, flags)
+ if ret is None:
+ raise libvirtError("virDomainCheckpointListAllChildren() failed",
conn=self)
+
+ retlist = list()
+ for chkptr in ret:
+ retlist.append(virDomainCheckpoint(self, _obj=chkptr))
+
+ return retlist
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-5.5.0/libvirt-override.c
new/libvirt-python-5.6.0/libvirt-override.c
--- old/libvirt-python-5.5.0/libvirt-override.c 2019-07-02 22:37:42.000000000
+0200
+++ new/libvirt-python-5.6.0/libvirt-override.c 2019-08-05 19:18:56.000000000
+0200
@@ -2325,6 +2325,98 @@
goto cleanup;
}
+#if LIBVIR_CHECK_VERSION(5, 6, 0)
+static PyObject *
+libvirt_virDomainListAllCheckpoints(PyObject *self ATTRIBUTE_UNUSED,
+ PyObject *args)
+{
+ PyObject *py_retval = NULL;
+ virDomainCheckpointPtr *chks = NULL;
+ int c_retval;
+ ssize_t i;
+ virDomainPtr dom;
+ PyObject *pyobj_dom;
+ unsigned int flags;
+
+ if (!PyArg_ParseTuple(args, (char *)"OI:virDomainListAllCheckpoints",
+ &pyobj_dom, &flags))
+ return NULL;
+ dom = (virDomainPtr) PyvirDomain_Get(pyobj_dom);
+
+ LIBVIRT_BEGIN_ALLOW_THREADS;
+ c_retval = virDomainListAllCheckpoints(dom, &chks, flags);
+ LIBVIRT_END_ALLOW_THREADS;
+
+ if (c_retval < 0)
+ return VIR_PY_NONE;
+
+ if (!(py_retval = PyList_New(c_retval)))
+ goto cleanup;
+
+ for (i = 0; i < c_retval; i++) {
+ VIR_PY_LIST_SET_GOTO(py_retval, i,
+ libvirt_virDomainCheckpointPtrWrap(chks[i]),
error);
+ chks[i] = NULL;
+ }
+
+ cleanup:
+ for (i = 0; i < c_retval; i++)
+ if (chks[i])
+ virDomainCheckpointFree(chks[i]);
+ VIR_FREE(chks);
+ return py_retval;
+
+ error:
+ Py_CLEAR(py_retval);
+ goto cleanup;
+}
+
+static PyObject *
+libvirt_virDomainCheckpointListAllChildren(PyObject *self ATTRIBUTE_UNUSED,
+ PyObject *args)
+{
+ PyObject *py_retval = NULL;
+ virDomainCheckpointPtr *chks = NULL;
+ int c_retval;
+ ssize_t i;
+ virDomainCheckpointPtr parent;
+ PyObject *pyobj_parent;
+ unsigned int flags;
+
+ if (!PyArg_ParseTuple(args, (char
*)"OI:virDomainCheckpointListAllChildren",
+ &pyobj_parent, &flags))
+ return NULL;
+ parent = (virDomainCheckpointPtr) PyvirDomainCheckpoint_Get(pyobj_parent);
+
+ LIBVIRT_BEGIN_ALLOW_THREADS;
+ c_retval = virDomainCheckpointListAllChildren(parent, &chks, flags);
+ LIBVIRT_END_ALLOW_THREADS;
+
+ if (c_retval < 0)
+ return VIR_PY_NONE;
+
+ if (!(py_retval = PyList_New(c_retval)))
+ goto cleanup;
+
+ for (i = 0; i < c_retval; i++) {
+ VIR_PY_LIST_SET_GOTO(py_retval, i,
+ libvirt_virDomainCheckpointPtrWrap(chks[i]),
error);
+ chks[i] = NULL;
+ }
+
+ cleanup:
+ for (i = 0; i < c_retval; i++)
+ if (chks[i])
+ virDomainCheckpointFree(chks[i]);
+ VIR_FREE(chks);
+ return py_retval;
+
+ error:
+ Py_CLEAR(py_retval);
+ goto cleanup;
+}
+#endif /* LIBVIR_CHECK_VERSION(5, 6, 0) */
+
static PyObject *
libvirt_virDomainSnapshotListNames(PyObject *self ATTRIBUTE_UNUSED,
PyObject *args)
@@ -10238,6 +10330,10 @@
#if LIBVIR_CHECK_VERSION(1, 0, 3)
{(char *) "virDomainGetJobStats", libvirt_virDomainGetJobStats,
METH_VARARGS, NULL},
#endif /* LIBVIR_CHECK_VERSION(1, 0, 3) */
+#if LIBVIR_CHECK_VERSION(5, 6, 0)
+ {(char *) "virDomainListAllCheckpoints",
libvirt_virDomainListAllCheckpoints, METH_VARARGS, NULL},
+ {(char *) "virDomainCheckpointListAllChildren",
libvirt_virDomainCheckpointListAllChildren, METH_VARARGS, NULL},
+#endif /* LIBVIR_CHECK_VERSION(5, 6, 0) */
{(char *) "virDomainSnapshotListNames",
libvirt_virDomainSnapshotListNames, METH_VARARGS, NULL},
#if LIBVIR_CHECK_VERSION(0, 9, 13)
{(char *) "virDomainListAllSnapshots", libvirt_virDomainListAllSnapshots,
METH_VARARGS, NULL},
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-5.5.0/libvirt-python.spec
new/libvirt-python-5.6.0/libvirt-python.spec
--- old/libvirt-python-5.5.0/libvirt-python.spec 2019-07-02
22:45:32.000000000 +0200
+++ new/libvirt-python-5.6.0/libvirt-python.spec 2019-08-05
19:20:28.000000000 +0200
@@ -4,7 +4,7 @@
# that's still supported by the vendor. It may work on other distros
# or versions, but no effort will be made to ensure that going forward
%define min_rhel 7
-%define min_fedora 27
+%define min_fedora 29
%if (0%{?fedora} && 0%{?fedora} >= %{min_fedora}) || (0%{?rhel} && 0%{?rhel}
>= %{min_rhel})
%define supported_platform 1
@@ -13,7 +13,7 @@
%endif
%define _with_python2 1
-%if 0%{?fedora} > 29 || 0%{?rhel} > 7
+%if 0%{?fedora} || 0%{?rhel} > 7
%define _with_python2 0
%endif
@@ -33,7 +33,7 @@
Summary: The libvirt virtualization API python2 binding
Name: libvirt-python
-Version: 5.5.0
+Version: 5.6.0
Release: 1%{?dist}
Source0: http://libvirt.org/sources/python/%{name}-%{version}.tar.gz
Url: http://libvirt.org
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-5.5.0/sanitytest.py
new/libvirt-python-5.6.0/sanitytest.py
--- old/libvirt-python-5.5.0/sanitytest.py 2019-07-02 22:37:42.000000000
+0200
+++ new/libvirt-python-5.6.0/sanitytest.py 2019-08-05 19:18:56.000000000
+0200
@@ -249,7 +249,7 @@
# Remove 'Get' prefix from most APIs, except those in virConnect
# and virDomainSnapshot namespaces which stupidly used a different
# convention which we now can't fix without breaking API
- if func[0:3] == "Get" and klass not in ["virConnect", "virDomainSnapshot",
"libvirt"]:
+ if func[0:3] == "Get" and klass not in ["virConnect",
"virDomainCheckpoint", "virDomainSnapshot", "libvirt"]:
if func not in ["GetCPUStats", "GetTime"]:
func = func[3:]
@@ -266,7 +266,7 @@
if klass != "virDomain":
func = klass[3:] + func
- if klass == "virDomainSnapshot":
+ if klass in ["virDomainCheckpoint", "virDomainSnapshot"]:
klass = "virDomain"
func = func[6:]
elif klass == "virStorageVol" and func in ["StorageVolCreateXMLFrom",
"StorageVolCreateXML"]:
@@ -300,7 +300,7 @@
if func[0:6] == "Change":
klass = "virConnect"
- # Need to special case the snapshot APIs
+ # Need to special case the checkpoint and snapshot APIs
if klass == "virDomainSnapshot" and func in ["Current", "ListNames",
"Num"]:
klass = "virDomain"
func = "snapshot" + func
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-5.5.0/setup.py
new/libvirt-python-5.6.0/setup.py
--- old/libvirt-python-5.5.0/setup.py 2019-07-02 22:22:06.000000000 +0200
+++ new/libvirt-python-5.6.0/setup.py 2019-08-05 19:20:25.000000000 +0200
@@ -334,7 +334,7 @@
_c_modules, _py_modules = get_module_lists()
setup(name = 'libvirt-python',
- version = '5.5.0',
+ version = '5.6.0',
url = 'http://www.libvirt.org',
maintainer = 'Libvirt Maintainers',
maintainer_email = '[email protected]',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-5.5.0/typewrappers.c
new/libvirt-python-5.6.0/typewrappers.c
--- old/libvirt-python-5.5.0/typewrappers.c 2019-07-02 22:37:42.000000000
+0200
+++ new/libvirt-python-5.6.0/typewrappers.c 2019-08-05 19:18:56.000000000
+0200
@@ -582,6 +582,19 @@
}
PyObject *
+libvirt_virDomainCheckpointPtrWrap(virDomainCheckpointPtr node)
+{
+ PyObject *ret;
+
+ if (node == NULL) {
+ return VIR_PY_NONE;
+ }
+
+ ret = libvirt_buildPyObject(node, "virDomainCheckpointPtr", NULL);
+ return ret;
+}
+
+PyObject *
libvirt_virDomainSnapshotPtrWrap(virDomainSnapshotPtr node)
{
PyObject *ret;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/libvirt-python-5.5.0/typewrappers.h
new/libvirt-python-5.6.0/typewrappers.h
--- old/libvirt-python-5.5.0/typewrappers.h 2019-07-02 22:37:42.000000000
+0200
+++ new/libvirt-python-5.6.0/typewrappers.h 2019-08-05 19:18:56.000000000
+0200
@@ -33,6 +33,9 @@
#if !LIBVIR_CHECK_VERSION(5, 5, 0)
typedef struct _virNetworkPort *virNetworkPortPtr;
#endif
+#if !LIBVIR_CHECK_VERSION(5, 6, 0)
+typedef struct _virDomainCheckpoint *virDomainCheckpointPtr;
+#endif
#define PyvirConnect_Get(v) (((v) == Py_None) ? NULL : \
(((PyvirConnect_Object *)(v))->obj))
@@ -140,6 +143,15 @@
} PyvirStream_Object;
+#define PyvirDomainCheckpoint_Get(v) (((v) == Py_None) ? NULL : \
+ (((PyvirDomainCheckpoint_Object *)(v))->obj))
+
+typedef struct {
+ PyObject_HEAD
+ virDomainCheckpointPtr obj;
+} PyvirDomainCheckpoint_Object;
+
+
#define PyvirDomainSnapshot_Get(v) (((v) == Py_None) ? NULL : \
(((PyvirDomainSnapshot_Object *)(v))->obj))
@@ -217,6 +229,7 @@
PyObject * libvirt_virNWFilterPtrWrap(virNWFilterPtr node);
PyObject * libvirt_virNWFilterBindingPtrWrap(virNWFilterBindingPtr node);
PyObject * libvirt_virStreamPtrWrap(virStreamPtr node);
+PyObject * libvirt_virDomainCheckpointPtrWrap(virDomainCheckpointPtr node);
PyObject * libvirt_virDomainSnapshotPtrWrap(virDomainSnapshotPtr node);