]> git.ipfire.org Git - thirdparty/libvirt.git/commit
secret: Create virsecretobj.c and virsecretconf.h
authorJohn Ferlan <jferlan@redhat.com>
Sat, 27 Feb 2016 11:49:12 +0000 (06:49 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 25 Apr 2016 19:45:29 +0000 (15:45 -0400)
commit4652b158aa92b20173f789c5a0359a3a55860e03
tree2d1ba3767bec14f71187ded98a2daf95a0254a46
parentdc3002b46c61d9e42fb75b7c47ca369569ef30c6
secret: Create virsecretobj.c and virsecretconf.h

Move virSecretObj from secret_driver.c to virsecretobj.h

To support being able to create a hashed secrets list, move the
virSecretObj to virsecretobj.h so that the code can at least find
the definition.

This should be a temporary situation while the virsecretobj.c code
is patched in order to support a hashed secret object while still
having the linked list support in secret_driver.c. Eventually, the
goal is to move the virSecretObj into virsecretobj.c, although it
is notable that the existing model from which virSecretObj was
derived has virDomainObj in src/conf/domain_conf.h and virNetworkObj
in src/conf/network_conf.h, so virSecretObj wouldn't be unique if
it were to remain in virsecretobj.h  Still adding accessors to fetch
and store hashed object data will be the end goal.

Add definitions and infrastucture in virsecretobj.c to create and
handle a hashed virSecretObj and virSecretObjList including the class,
object, lock setup, and disposal API's. Nothing will call these yet.

This infrastructure will replace the forward linked list logic
within the secret_driver, eventually.
src/Makefile.am
src/conf/virsecretobj.c [new file with mode: 0644]
src/conf/virsecretobj.h [new file with mode: 0644]
src/secret/secret_driver.c