node_memory: Expose the APIs to Python bindings

* python/libvirt-override-api.xml: (Add document to describe
  the APIs).
* python/libvirt-override.c: (Implement the API wrappers manually)
This commit is contained in:
Osier Yang
2012-09-14 22:42:19 +08:00
parent 0e96fa5489
commit 4c4c80df3f
2 changed files with 138 additions and 0 deletions

View File

@@ -529,5 +529,18 @@
<arg name='domain' type='virDomainPtr' info='a domain object'/>
<arg name='flags' type='unsigned int' info='unused, always pass 0'/>
</function>
<function name='virNodeSetMemoryParameters' file='python'>
<info>Change the node memory tunables</info>
<return type='int' info='-1 in case of error, 0 in case of success.'/>
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
<arg name='params' type='virTypedParameterPtr' info='pointer to the memory tunable objects'/>
<arg name='flags' type='int' info='unused, always pass 0'/>
</function>
<function name='virNodeGetMemoryParameters' file='python'>
<info>Get the node memory parameters</info>
<return type='str *' info='None in case of error, returns a dictionary of params'/>
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
<arg name='flags' type='int' info='unused, always pass 0'/>
</function>
</symbols>
</api>