summaryrefslogtreecommitdiffstats
path: root/libvirt-override-api.xml
diff options
context:
space:
mode:
authorNikunj A. Dadhania <nikunj@linux.vnet.ibm.com>2010-10-12 15:43:27 +0200
committerDaniel Veillard <veillard@redhat.com>2010-10-12 19:26:09 +0200
commit5e11899803a9e74f7772bd8464802fab8e1c05d2 (patch)
tree447670900cb83f3b01b56957e75d207db0330def /libvirt-override-api.xml
parent2970a62d8b9e60d68bf39ea5f97eacb3c8f62ba1 (diff)
downloadlibvirt-python-split-5e11899803a9e74f7772bd8464802fab8e1c05d2.tar.gz
libvirt-python-split-5e11899803a9e74f7772bd8464802fab8e1c05d2.tar.xz
libvirt-python-split-5e11899803a9e74f7772bd8464802fab8e1c05d2.zip
Adding structure and defines for virDomainSet/GetMemoryParameters
This patch adds a structure virMemoryParameter, it contains the name of the parameter and the type of the parameter along with a union. dv: + rename enums to VIR_DOMAIN_MEMORY_PARAM_* + remove some extraneous tabs v4: + Add unsigned int flags to the public api for future extensions v3: + Protoype for virDomainGetMemoryParameters and dummy python binding. v2: + Includes dummy python bindings for the library to build cleanly. + Define string constants like "hard_limit", etc. + re-order this patch.
Diffstat (limited to 'libvirt-override-api.xml')
-rw-r--r--libvirt-override-api.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/libvirt-override-api.xml b/libvirt-override-api.xml
index ca16993..f209608 100644
--- a/libvirt-override-api.xml
+++ b/libvirt-override-api.xml
@@ -162,6 +162,18 @@
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
<arg name='params' type='virSchedParameterPtr' info='pointer to scheduler parameter objects'/>
</function>
+ <function name='virDomainSetMemoryParameters' file='python'>
+ <info>Change the memory tunables</info>
+ <return type='int' info='-1 in case of error, 0 in case of success.'/>
+ <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
+ <arg name='params' type='virMemoryParameterPtr' info='pointer to memory tunable objects'/>
+ </function>
+ <function name='virDomainGetMemoryParameters' file='python'>
+ <info>Get the memory parameters, the @params array will be filled with the values.</info>
+ <return type='int' info='-1 in case of error, 0 in case of success.'/>
+ <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
+ <arg name='params' type='virMemoryParameterPtr' info='pointer to memory tunable objects'/>
+ </function>
<function name='virConnectListStoragePools' file='python'>
<info>list the storage pools, stores the pointers to the names in @names</info>
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>