Re: [libvirt] [PATCH 6/6] Implement python binding for virDomainGetBlockInfo

2010-04-28 Thread Daniel Veillard
On Wed, Apr 28, 2010 at 04:19:48PM +0200, Daniel Veillard wrote: > On Wed, Apr 28, 2010 at 01:54:50PM +0100, Daniel P. Berrange wrote: > > This binds the virDomainGetBlockInfo API to python's blockInfo > > method on the domain object > [...] > > static PyObject * > > +libvirt_virDomainGetBlockInfo

Re: [libvirt] [PATCH 6/6] Implement python binding for virDomainGetBlockInfo

2010-04-28 Thread Daniel P. Berrange
On Wed, Apr 28, 2010 at 04:19:48PM +0200, Daniel Veillard wrote: > On Wed, Apr 28, 2010 at 01:54:50PM +0100, Daniel P. Berrange wrote: > > This binds the virDomainGetBlockInfo API to python's blockInfo > > method on the domain object > [...] > > static PyObject * > > +libvirt_virDomainGetBlockInfo

Re: [libvirt] [PATCH 6/6] Implement python binding for virDomainGetBlockInfo

2010-04-28 Thread Daniel Veillard
On Wed, Apr 28, 2010 at 01:54:50PM +0100, Daniel P. Berrange wrote: > This binds the virDomainGetBlockInfo API to python's blockInfo > method on the domain object [...] > static PyObject * > +libvirt_virDomainGetBlockInfo(PyObject *self ATTRIBUTE_UNUSED, PyObject > *args) { [...] > +c_retval

[libvirt] [PATCH 6/6] Implement python binding for virDomainGetBlockInfo

2010-04-28 Thread Daniel P. Berrange
This binds the virDomainGetBlockInfo API to python's blockInfo method on the domain object >>> c = libvirt.openReadOnly('qemu:///session') >>> d = c.lookupByName('demo') >>> f = d.blockInfo("/dev/loop0", 0) >>> print f [1048576000L, 104857600L, 104857600L] * python/libvirt-override-api.xml: Defin