mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-12-21 04:24:33 +03:00
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.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user