X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/939d32fda70ea66c9db51687beb3cea6da7b0599..1b09cbd303d889ec2636127584d57b7f1b70c25e:/cache.h diff --git a/cache.h b/cache.h index 5f2178d..5cfdb4f 100644 --- a/cache.h +++ b/cache.h @@ -26,7 +26,13 @@ extern int cache_process(int size, const char *path, const char *key, int ttl, cache_fill_fn fn, void *cbdata); +/* List info about all cache entries on stdout */ +extern int cache_ls(const char *path); + /* Print a message to stdout */ +__attribute__((format (printf,1,2))) extern void cache_log(const char *format, ...); +extern unsigned long hash_str(const char *str); + #endif /* CGIT_CACHE_H */