Re: [libvirt] [PATCH libvirt-python] Add c_pointer method to classes.

2014-12-12 Thread Daniel P. Berrange
On Thu, Dec 11, 2014 at 11:29:48AM +, Richard W.M. Jones wrote: > This returns the raw C pointer to the underlying object, eg: > > conn = libvirt.open(None) > print "0x%x" % conn.c_pointer() # returns virConnectPtr of the connection > dom = conn.lookupByName("test") > print "0x%x" %

[libvirt] [PATCH libvirt-python] Add c_pointer method to classes.

2014-12-11 Thread Richard W.M. Jones
This returns the raw C pointer to the underlying object, eg: conn = libvirt.open(None) print "0x%x" % conn.c_pointer() # returns virConnectPtr of the connection dom = conn.lookupByName("test") print "0x%x" % dom.c_pointer()# returns virDomainPtr of the domain The reason behind this