On Tue, Sep 18, 2012 at 12:33:12PM +0100, Daniel P. Berrange wrote:
On Tue, Sep 18, 2012 at 07:28:44PM +0800, Daniel Veillard wrote:
> On Tue, Sep 18, 2012 at 10:56:55AM +0000, Buggi, Harsha wrote:
> > Hi,
> >
> > virNodeGetCPUStats and virDomainGetCPUStats have same name in pyton binding as
getCPUStats
> >
> > virDomainGetCPUStats gets called internally when we use the method getCPUStats.
How do we access virNodeGetCPUStats?
>
> Ouch we need to fix the generator to have domainGetCPUStats !!
Err, no we don't. The getCPUStats() binding to virNodeGetCPUStats() is
done against the virConnect class, while the getCPUStats() binding
to virDomainGetCPUStats() is done against the virDomain class. The names
only need to be unique within the scope of the class, not the entire
module
Oops right, separate classes,
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit
http://xmlsoft.org/
daniel(a)veillard.com | Rpmfind RPM search engine
http://rpmfind.net/
http://veillard.com/ | virtualization library
http://libvirt.org/