]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: introduce virFileCache
authorPavel Hrdina <phrdina@redhat.com>
Fri, 7 Apr 2017 15:34:53 +0000 (17:34 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 26 Jul 2017 13:31:25 +0000 (15:31 +0200)
commitac3eb2ab241aec0cfe30cc68f3e20c1e4b4c001b
treec3ebb04fff8fd98bfa307a399b677dbc8b90cc86
parentcc1329b62759e7fc6a5a34ca18b5c072693aa3eb
util: introduce virFileCache

The new virFileCache will nicely handle the caching logic for any data
that we would like to cache.  For each type of data we will just need
to implement few handlers that will take care of creating, validating,
loading and saving the cached data.

The cached data must be an instance of virObject.

Currently we cache QEMU capabilities which will start using
virFileCache.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
po/POTFILES.in
src/Makefile.am
src/libvirt_private.syms
src/util/virfilecache.c [new file with mode: 0644]
src/util/virfilecache.h [new file with mode: 0644]