d03de54 qemu: switch QEMU capabilities to use virFileCache

Authored and Committed by phrdina 6 years ago
    qemu: switch QEMU capabilities to use virFileCache
    
    The switch contains considerable amount of changes:
    
      virQEMUCapsRememberCached() is removed because this is now handled
      by virFileCacheSave().
    
      virQEMUCapsInitCached() is removed because this is now handled by
      virFileCacheLoad().
    
      virQEMUCapsNewForBinary() is split into two functions,
      virQEMUCapsNewData() which creates new data if there is nothing
      cached and virQEMUCapsLoadFile() which loads the cached data.
      This is now handled by virFileCacheNewData().
    
      virQEMUCapsCacheValidate() is removed because this is now handled by
      virFileCacheValidate().
    
      virQEMUCapsCacheFree() is removed because it's no longer required.
    
      Add virCapsPtr into virQEMUCapsCachePriv because for each call of
      virFileCacheLookup*() we need to use current virCapsPtr.
    
    Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
    Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
    
        
file modified
+80 -236
file modified
+7 -10
file modified
+0 -6
file modified
+2 -1
file modified
+1 -1
file modified
+4 -5
file modified
+2 -1