]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Refactor virQEMUCapsCacheLookup
authorJiri Denemark <jdenemar@redhat.com>
Wed, 16 Nov 2016 12:47:09 +0000 (13:47 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 25 Nov 2016 19:34:26 +0000 (20:34 +0100)
commit72e5aa4e1eaa2b087c811f92494921a0f51a9df7
treeb0fa8f43526a56c5fe942e5f8a86738855db17f9
parentcd51b90fbf593090b2c82d767f874aae9aebb74e
qemu: Refactor virQEMUCapsCacheLookup

The function is made a little bit more readable and the code which
refreshes cached capabilities if they are not valid any more was moved
into a separate function (virQEMUCapsCacheValidate) so that it can be
reused in other places.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_capabilities.c