]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Introduce virObjectGetRWLockableObj
authorJohn Ferlan <jferlan@redhat.com>
Fri, 28 Jul 2017 14:27:11 +0000 (10:27 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 15 Aug 2017 01:41:59 +0000 (21:41 -0400)
commitbf09f002b180d14af2fa0af86445bbf140851f30
tree7b8c0938f199ed5f4cd9fec3be505cc53e19b39d
parent8b03a609dda76b0b91c0e06073624f64ae4e1549
util: Introduce virObjectGetRWLockableObj

Introduce a helper to handle the error path more cleanly. The same
as virObjectGetLockableObj in order to essentially follow the original
logic of commit 'b545f65d' to ensure that the input argument at least
has some validity before using.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/util/virobject.c