python: Implement Pointer ("virDomainPtr", _) (RHBZ#1075164).

This allows the Python binding of guestfs_add_libvirt_dom to work.

There is a regression test to ensure this keeps working.

Note this requires a patched libvirt-python, supporting the
c_pointer() method.
This commit is contained in:
Richard W.M. Jones
2014-12-10 20:53:27 +00:00
parent db1c8a6436
commit 2c9f6da034
4 changed files with 65 additions and 8 deletions

View File

@@ -18,6 +18,9 @@
errors=0
guestsdir="$(cd ../tests/guests && pwd)"
export guestsdir
for f in $srcdir/t/*.py; do
$PYTHON $f
r=$?