]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virstorage: Introduce virStorageAuthDef
authorJohn Ferlan <jferlan@redhat.com>
Mon, 23 Jun 2014 14:40:49 +0000 (10:40 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 3 Jul 2014 21:39:14 +0000 (17:39 -0400)
commit1c36b944e2bbf5efca30b3256c1c757ffb331395
tree784d4ec1d2079f0b51a24deafa53a4cb5c89b564
parent40ad7160a2e2c5121cf60a37b0a072910a21f22a
virstorage: Introduce virStorageAuthDef

Introduce virStorageAuthDef and friends.  Future patches will merge/utilize
their view of storage source/pool auth/secret definitions.

New API's include:
    virStorageAuthDefParse:  Parse the "<auth/>" XML data for either the
                             domain disk or storage pool returning a
                             virStorageAuthDefPtr
    virStorageAuthDefCopy:   Copy a virStorageAuthDefPtr - to be used by
                             the qemuTranslateDiskSourcePoolAuth when it
                             copies storage pool auth data into domain
                             disk auth data
    virStorageAuthDefFormat: Common output of the "<auth" in the domain
                             disk or storage pool XML
    virStorageAuthDefFree:   Free memory associated with virStorageAuthDef

Subsequent patches will utilize the new functions for the domain disk and
storage pools.

Future work in the hostdev pass through can then make use of common data
structures and code.
src/libvirt_private.syms
src/util/virstoragefile.c
src/util/virstoragefile.h