From 517e523a2a62ec782b55c4cc16492c1d10d07839 Mon Sep 17 00:00:00 2001 From: Dmitry Osipenko Date: Mon, 27 Jun 2022 19:52:28 +0300 Subject: [PATCH] util/disk_cache: Move struct cache_entry_file_data to the disk_cache_os.h Relocate struct cache_entry_file_data to the header file, making it accessible to the cache testing code. This is a preparatory step towards addition of the new Mesa-DB cache type. Reviewed-by: Timothy Arceri Reviewed-by: Emil Velikov Signed-off-by: Dmitry Osipenko Part-of: --- src/util/disk_cache_os.c | 5 ----- src/util/disk_cache_os.h | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/util/disk_cache_os.c b/src/util/disk_cache_os.c index 94e7e5bc17d..133d4d5d1cc 100644 --- a/src/util/disk_cache_os.c +++ b/src/util/disk_cache_os.c @@ -36,11 +36,6 @@ #include "util/disk_cache.h" #include "util/disk_cache_os.h" -struct cache_entry_file_data { - uint32_t crc32; - uint32_t uncompressed_size; -}; - #if DETECT_OS_WINDOWS bool diff --git a/src/util/disk_cache_os.h b/src/util/disk_cache_os.h index 83f1090ca8b..9fbd4bbbffc 100644 --- a/src/util/disk_cache_os.h +++ b/src/util/disk_cache_os.h @@ -80,6 +80,11 @@ struct disk_cache { bool compression_disabled; }; +struct cache_entry_file_data { + uint32_t crc32; + uint32_t uncompressed_size; +}; + struct disk_cache_put_job { struct util_queue_fence fence;