diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2007-06-25 15:56:18 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2007-06-25 15:56:18 +0000 |
commit | 51a0571b597470e479ef884c8772d792a29c6b19 (patch) | |
tree | 89aea245d72a9ce80d4d10edad449a7de36a6337 | |
parent | 80ed1b408a784c32d1149e3c32885f33aeaf57f8 (diff) | |
download | libvirt-python-split-51a0571b597470e479ef884c8772d792a29c6b19.tar.gz libvirt-python-split-51a0571b597470e479ef884c8772d792a29c6b19.tar.xz libvirt-python-split-51a0571b597470e479ef884c8772d792a29c6b19.zip |
Mon Jun 25 16:55:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* include/libvirt/libvirt.h.in, src/libvirt.c, src/libvirt_sym.version,
python/generator.py: Added virDomainGetConnect and
virNetworkGetConnect to allow us to get the "hidden"
connection associated with each domain or network.
-rwxr-xr-x | generator.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/generator.py b/generator.py index 3dc3212..4f7c129 100755 --- a/generator.py +++ b/generator.py @@ -870,6 +870,10 @@ def buildWrappers(): txt.write("Class %s()\n" % (classname)) classes.write("class %s:\n" % (classname)) if classname == "virDomain" or classname == "virNetwork": + # NB: Earlier versions of libvirt did not provide + # vir{Domain,Network}GetConnect, so we had to explicitly + # store the connection object in _conn. In future + # we won't need to do this. classes.write(" def __init__(self, conn, _obj=None):\n") else: classes.write(" def __init__(self, _obj=None):\n") |