diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2010-04-28 13:42:13 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2010-04-29 17:21:32 +0100 |
commit | 5c99e3b35c5546f46e6c7666fe506bdb29ab738e (patch) | |
tree | 2d150fde93202bc72cd859c47c2b341421969493 /libvirt-override-api.xml | |
parent | 626e52010b6151cbae01e91aa0b94dae8490537c (diff) | |
download | libvirt-python-v6-5c99e3b35c5546f46e6c7666fe506bdb29ab738e.tar.gz libvirt-python-v6-5c99e3b35c5546f46e6c7666fe506bdb29ab738e.tar.xz libvirt-python-v6-5c99e3b35c5546f46e6c7666fe506bdb29ab738e.zip |
Implement python binding for virDomainGetBlockInfo
This binds the virDomainGetBlockInfo API to python's blockInfo
method on the domain object
>>> c = libvirt.openReadOnly('qemu:///session')
>>> d = c.lookupByName('demo')
>>> f = d.blockInfo("/dev/loop0", 0)
>>> print f
[1048576000L, 104857600L, 104857600L]
* python/libvirt-override-api.xml: Define override signature
* python/generator.py: Skip C impl generator for virDomainGetBlockInfo
* python/libvirt-override.c: Manual impl of virDomainGetBlockInfo
Diffstat (limited to 'libvirt-override-api.xml')
-rw-r--r-- | libvirt-override-api.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libvirt-override-api.xml b/libvirt-override-api.xml index 76a102d..9ba8e4e 100644 --- a/libvirt-override-api.xml +++ b/libvirt-override-api.xml @@ -48,6 +48,13 @@ <return type='int *' info='the list of information or None in case of error'/> <arg name='domain' type='virDomainPtr' info='a domain object'/> </function> + <function name='virDomainGetBlockInfo' file='python'> + <info>Extract information about a domain block device size</info> + <return type='int *' info='the list of information or None in case of error'/> + <arg name='domain' type='virDomainPtr' info='a domain object'/> + <arg name='path' type='const char *' info='path to the block device or file'/> + <arg name='flags' type='unsigned int' info='currently unused'/> + </function> <function name='virDomainGetJobInfo' file='python'> <info>Extract information about an active job being processed for a domain.</info> <return type='int *' info='the list of information or None in case of error'/> |