diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-09-25 14:47:06 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-09-25 14:49:17 +0200 |
commit | 3c395ecea2bb538cf5182a64df503329a0a1cbcc (patch) | |
tree | cab60d6323743922409411cf73c1a1e44e3f0f31 /src/json.h | |
parent | 65aee8f3f32f8f936aa272301ad69fc38c0f258c (diff) |
client: move image list to cache data to consolidate it
Move list of images in the cache to cache_data. Add new functions to
initialize cache data (image list) and release it.
Diffstat (limited to 'src/json.h')
-rw-r--r-- | src/json.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -138,11 +138,12 @@ struct og_cache_image { struct og_cache_data { uint64_t used_size; uint64_t free_size; + struct list_head image_list; }; -void og_cache_image_free(struct list_head *cache_list); -int og_json_parse_cache(json_t *element, struct og_cache_data *cache_data, struct list_head *cache_list); - +void og_cache_data_init(struct og_cache_data *cache_data); +void og_cache_data_free(struct og_cache_data *cache_data); +int og_json_parse_cache(json_t *element, struct og_cache_data *cache_data); #define OG_PARAM_EFI_ENTRIES (1UL << 0) #define OG_PARAM_EFI_ORDER (1UL << 1) |