[Libvir] [PATCH] Add virDomainGetConnect and virNetworkGetConnect

Richard W.M. Jones rjones at redhat.com
Mon Jun 25 13:58:48 UTC 2007


As described in this thread:

https://www.redhat.com/archives/libvir-list/2007-June/thread.html#00352

* These functions don't change the reference count for virConnectPtr. 
It's be a pain in the neck for callers otherwise.
* I haven't changed the Python bindings, because I'm not confident 
enough that I can do that correctly and keep it backwards compatible for 
all callers (and anyway what would happen if newer Python bindings were 
used together with an older libvirt?).  However I did add a comment to 
the generator noting that this could be changed in future.
* I tested this with the OCaml bindings with no apparent ill-effects.

Rich.

-- 
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-get-connection-20070625.patch
Type: text/x-patch
Size: 5283 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20070625/e922225e/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20070625/e922225e/attachment-0003.bin>


More information about the libvir-list mailing list