Re: [libvirt] [PATCHv3] python: Expose virDomain{G, S}etInterfaceParameters APIs in python binding

2012-02-15 Thread Alex Jia
Eric, yes, I haven't noticed it:( and will fix them on v4. Thanks, Alex - Original Message - From: "Eric Blake" To: a...@redhat.com Cc: libvir-list@redhat.com Sent: Thursday, February 16, 2012 12:04:14 AM Subject: Re: [libvirt] [PATCHv3] python: Expose

Re: [libvirt] [PATCHv3] python: Expose virDomain{G, S}etInterfaceParameters APIs in python binding

2012-02-15 Thread Eric Blake
On 02/13/2012 07:56 PM, a...@redhat.com wrote: > From: Alex Jia > > The v3 patch to follow latest python binding codes and change 'size' > type from int to Py_ssize_t. > > static PyObject * > +libvirt_virDomainSetInterfaceParameters(PyObject *self ATTRIBUTE_UNUSED, > +

[libvirt] [PATCHv3] python: Expose virDomain{G, S}etInterfaceParameters APIs in python binding

2012-02-13 Thread ajia
From: Alex Jia The v3 patch to follow latest python binding codes and change 'size' type from int to Py_ssize_t. An simple example to show how to use it: #!/usr/bin/env python import libvirt conn = libvirt.open(None) dom = conn.lookupByName('foo') print dom.interfaceParameters('vnet0', 0) p