]> git.ipfire.org Git - thirdparty/libvirt.git/commit
secret: Introduce virSecretObjListAdd* and virSecretObjListRemove
authorJohn Ferlan <jferlan@redhat.com>
Tue, 19 Apr 2016 20:05:38 +0000 (16:05 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 25 Apr 2016 19:45:29 +0000 (15:45 -0400)
commitd4287b985c693b4536d7f295c89b4aedb903939e
tree5b81375ef030133d7e8162309499d40d78aa7b8c
parent615c8cce64b85ef94ba8ffade90253680c7efca0
secret: Introduce virSecretObjListAdd* and virSecretObjListRemove

Add the functions to add/remove elements from the hashed secret obj list.
These will replace secret_driver functions secretAssignDef and secretObjRemove.

The virSecretObjListAddLocked will perform the necessary lookups and
decide whether to replace an existing hash entry or create a new one.
This includes setting up the configPath and base64Path as well as being
able to support the caller's need to restore from a previous definition
in case something goes wrong in the caller.
po/POTFILES.in
src/conf/virsecretobj.c
src/conf/virsecretobj.h