]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/sysupdate/sysupdate-cache.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
6 typedef struct WebCacheItem
{
13 /* A simple in-memory cache for downloaded manifests. Very likely multiple transfers will use the same
14 * manifest URLs, hence let's make sure we only download them once within each sysupdate invocation. */
16 int web_cache_add_item(Hashmap
**cache
, const char *url
, bool verified
, const void *data
, size_t size
);
18 WebCacheItem
* web_cache_get_item(Hashmap
*cache
, const char *url
, bool verified
);