提交 56cec18d 编写于 作者: G Guannan Ren 提交者: Eric Blake

python: make other APIs share common {get, set}PyVirTypedParameter

        *libvirt_virDomainBlockStatsFlags
        *libvirt_virDomainGetSchedulerParameters
        *libvirt_virDomainGetSchedulerParametersFlags
        *libvirt_virDomainSetSchedulerParameters
        *libvirt_virDomainSetSchedulerParametersFlags
        *libvirt_virDomainSetBlkioParameters
        *libvirt_virDomainGetBlkioParameters
        *libvirt_virDomainSetMemoryParameters
        *libvirt_virDomainGetMemoryParameters
        *libvirt_virDomainSetBlockIoTune
        *libvirt_virDomainGetBlockIoTune
上级 805b4407
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
</function> </function>
<function name='virDomainBlockStatsFlags' file='python'> <function name='virDomainBlockStatsFlags' file='python'>
<info>Extracts block device statistics parameters of a running domain</info> <info>Extracts block device statistics parameters of a running domain</info>
<return type='virTypedParameterPtr' info='None in case of error, returns a dictionary of params'/> <return type='str *' info='None in case of error, returns a dictionary of params'/>
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
<arg name='path' type='char *' info='the path for the block device'/> <arg name='path' type='char *' info='the path for the block device'/>
<arg name='flags' type='int' info='flags (unused; pass 0)'/> <arg name='flags' type='int' info='flags (unused; pass 0)'/>
...@@ -169,12 +169,12 @@ ...@@ -169,12 +169,12 @@
</function> </function>
<function name='virDomainGetSchedulerParameters' file='python'> <function name='virDomainGetSchedulerParameters' file='python'>
<info>Get the scheduler parameters, the @params array will be filled with the values.</info> <info>Get the scheduler 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.'/> <return type='str *' info='None in case of error, returns a dictionary of params.'/>
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
</function> </function>
<function name='virDomainGetSchedulerParametersFlags' file='python'> <function name='virDomainGetSchedulerParametersFlags' file='python'>
<info>Get the scheduler parameters</info> <info>Get the scheduler parameters</info>
<return type='virSchedParameterPtr' info='None in case of error, returns a dictionary of params'/> <return type='str *' info='None in case of error, returns a dictionary of params'/>
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
<arg name='flags' type='int' info='an OR&apos;ed set of virDomainModificationImpact'/> <arg name='flags' type='int' info='an OR&apos;ed set of virDomainModificationImpact'/>
</function> </function>
...@@ -231,7 +231,7 @@ ...@@ -231,7 +231,7 @@
</function> </function>
<function name='virDomainGetBlkioParameters' file='python'> <function name='virDomainGetBlkioParameters' file='python'>
<info>Get the blkio parameters</info> <info>Get the blkio parameters</info>
<return type='virSchedParameterPtr' info='None in case of error, returns a dictionary of params'/> <return type='str *' info='None in case of error, returns a dictionary of params'/>
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
<arg name='flags' type='int' info='an OR&apos;ed set of virDomainModificationImpact'/> <arg name='flags' type='int' info='an OR&apos;ed set of virDomainModificationImpact'/>
</function> </function>
...@@ -244,7 +244,7 @@ ...@@ -244,7 +244,7 @@
</function> </function>
<function name='virDomainGetMemoryParameters' file='python'> <function name='virDomainGetMemoryParameters' file='python'>
<info>Get the memory parameters</info> <info>Get the memory parameters</info>
<return type='virSchedParameterPtr' info='None in case of error, returns a dictionary of params'/> <return type='str *' info='None in case of error, returns a dictionary of params'/>
<arg name='domain' type='virDomainPtr' info='pointer to domain object'/> <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
<arg name='flags' type='int' info='an OR&apos;ed set of virDomainModificationImpact'/> <arg name='flags' type='int' info='an OR&apos;ed set of virDomainModificationImpact'/>
</function> </function>
...@@ -415,7 +415,7 @@ ...@@ -415,7 +415,7 @@
<arg name='dom' type='virDomainPtr' info='pointer to the domain'/> <arg name='dom' type='virDomainPtr' info='pointer to the domain'/>
<arg name='disk' type='const char *' info='disk name'/> <arg name='disk' type='const char *' info='disk name'/>
<arg name='flags' type='unsigned int' info='an OR&apos;ed set of virDomainModificationImpact'/> <arg name='flags' type='unsigned int' info='an OR&apos;ed set of virDomainModificationImpact'/>
<return type='virTypedParameterPtr' info='the I/O tunables value or None in case of error'/> <return type='str *' info='the I/O tunables value or None in case of error'/>
</function> </function>
<function name='virDomainBlockPeek' file='python'> <function name='virDomainBlockPeek' file='python'>
<info>Read the contents of domain's disk device</info> <info>Read the contents of domain's disk device</info>
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册