summaryrefslogtreecommitdiff
path: root/typewrappers.c
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2019-02-07 16:36:16 -0600
committerEric Blake <eblake@redhat.com>2019-07-29 13:39:39 -0500
commit358a8640fa03b6d79645d1794e28a4259bea7ec3 (patch)
treed3761aa580c5c875a828658f2c082c5e31bbc3af /typewrappers.c
parent5e9d1aa7facb9e5ff77fbdf8509a965364ed3630 (diff)
downloadlibvirt-python-358a8640fa03b6d79645d1794e28a4259bea7ec3.tar.gz
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. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'typewrappers.c')
-rw-r--r--typewrappers.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/typewrappers.c b/typewrappers.c
index 5710744..2507859 100644
--- a/typewrappers.c
+++ b/typewrappers.c
@@ -582,6 +582,19 @@ libvirt_virStreamPtrWrap(virStreamPtr node)
}
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;