61 struct lws_diskcache_scan;
73 LWS_VISIBLE LWS_EXTERN
struct lws_diskcache_scan *
84 LWS_VISIBLE LWS_EXTERN
void
102 LWS_VISIBLE LWS_EXTERN
int
105 #define LWS_DISKCACHE_QUERY_NO_CACHE 0
106 #define LWS_DISKCACHE_QUERY_EXISTS 1
107 #define LWS_DISKCACHE_QUERY_CREATING 2
108 #define LWS_DISKCACHE_QUERY_ONGOING 3
140 LWS_VISIBLE LWS_EXTERN
int
142 const char *hash_hex,
int *_fd,
char *cache,
int cache_len,
143 size_t *extant_cache_len);
155 LWS_VISIBLE LWS_EXTERN
int
173 LWS_VISIBLE LWS_EXTERN
int
185 LWS_VISIBLE LWS_EXTERN
int
LWS_VISIBLE LWS_EXTERN int lws_diskcache_trim(struct lws_diskcache_scan *lds)
LWS_VISIBLE LWS_EXTERN int lws_diskcache_prepare(const char *cache_base_dir, int mode, uid_t uid)
LWS_VISIBLE LWS_EXTERN int lws_diskcache_secs_to_idle(struct lws_diskcache_scan *lds)
LWS_VISIBLE LWS_EXTERN void lws_diskcache_destroy(struct lws_diskcache_scan **lds)
LWS_VISIBLE LWS_EXTERN int lws_diskcache_finalize_name(char *cache)
LWS_VISIBLE LWS_EXTERN struct lws_diskcache_scan * lws_diskcache_create(const char *cache_dir_base, uint64_t cache_size_limit)
LWS_VISIBLE LWS_EXTERN int lws_diskcache_query(struct lws_diskcache_scan *lds, int is_bot, const char *hash_hex, int *_fd, char *cache, int cache_len, size_t *extant_cache_len)