]> xenbits.xensource.com Git - libvirt.git/commit
Add wrappers for virDomainDiskIndexBy*
authorJiri Denemark <jdenemar@redhat.com>
Thu, 21 May 2015 06:53:40 +0000 (08:53 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 21 May 2015 12:35:02 +0000 (14:35 +0200)
commit865109b353423e4a26389923e9110bbcd8d2f626
tree6f29403638bffa61ca781c945f83657b9788184e
parentfb0b9a2cc50fb7a52eb4afea8ea48e39db74e45b
Add wrappers for virDomainDiskIndexBy*

Sometimes the only thing we need is the pointer to virDomainDiskDef and
having to call virDomainDiskIndexBy* APIs, storing the disk index, and
looking it up in the disks array is ugly. After this patch, we can just
call virDomainDiskBy* and get the pointer in one step.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms