]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: move common disk source functions
authorEric Blake <eblake@redhat.com>
Sat, 29 Mar 2014 18:00:38 +0000 (12:00 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 1 Apr 2014 16:38:14 +0000 (10:38 -0600)
commit7a4fd22b17fb077290572cfea87d64353dd92a84
tree157e3afd25f8c5dfa7ce6063da4fd753e40dbcf8
parent885ac290ea8742d3f156aa70a6ef18620d431e8b
conf: move common disk source functions

Move some functions out of domain_conf for use in the next
patch where snapshot starts to directly use structs in
virstoragefile.

* src/conf/domain_conf.c (virDomainDiskDefFree)
(virDomainDiskSourcePoolDefParse): Adjust callers.
(virDomainDiskSourceDefClear, virDomainDiskSourcePoolDefFree)
(virDomainDiskAuthClear): Move...
* src/util/virstoragefile.c (virStorageSourceClear)
(virStorageSourcePoolDefFree, virStorageSourceAuthClear): ...and
rename.
* src/conf/domain_conf.h (virDomainDiskAuthClear): Drop
declaration.
* src/qemu/qemu_conf.c (qemuTranslateDiskSourcePool): Adjust
caller.
* src/util/virstoragefile.h: Declare them.
* src/libvirt_private.syms (virstoragefile.h): Export them.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms
src/qemu/qemu_conf.c
src/util/virstoragefile.c
src/util/virstoragefile.h