summaryrefslogtreecommitdiffstats
path: root/libvirt-override-api.xml
diff options
context:
space:
mode:
authorAdam Litke <agl@us.ibm.com>2009-12-20 13:48:37 +0100
committerDaniel Veillard <veillard@redhat.com>2009-12-20 13:48:37 +0100
commitd8d01cc94ce4a2955ef272319429dfd5a3e9df01 (patch)
tree5e46f75739b9571a7b5c2ca1bddb46f5b07f0cf2 /libvirt-override-api.xml
parent07a2265dcf190856752bf659ef7e93fd9060e8c4 (diff)
downloadlibvirt-python-split-d8d01cc94ce4a2955ef272319429dfd5a3e9df01.tar.gz
libvirt-python-split-d8d01cc94ce4a2955ef272319429dfd5a3e9df01.tar.xz
libvirt-python-split-d8d01cc94ce4a2955ef272319429dfd5a3e9df01.zip
python: Add python bindings for virDomainMemoryStatsv0.7.5
Enable virDomainMemoryStats in the python API. dom.memoryStats() will return a dictionary containing the supported statistics. A dictionary is required because the meaining of each quantity cannot be inferred from its index in a list. * python/generator.py: reenable bindings for this entry point * python/libvirt-override-api.xml python/libvirt-override.c: the generator can't handle this new function, add the new binding, and the XML description
Diffstat (limited to 'libvirt-override-api.xml')
-rw-r--r--libvirt-override-api.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/libvirt-override-api.xml b/libvirt-override-api.xml
index 96958b5..6ae2742 100644
--- a/libvirt-override-api.xml
+++ b/libvirt-override-api.xml
@@ -105,6 +105,11 @@
<arg name='domain' type='virDomainPtr' info='a domain object'/>
<arg name='path' type='char *' info='the path for the interface device'/>
</function>
+ <function name='virDomainMemoryStats' file='python'>
+ <info>Extracts memory statistics for a domain</info>
+ <return type='virDomainMemoryStats' info='a dictionary of statistics'/>
+ <arg name='domain' type='virDomainPtr' info='a domain object'/>
+ </function>
<function name="virNodeGetCellsFreeMemory" file='python'>
<info>Returns the available memory for a list of cells</info>
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>