]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.h
Avoid infinite loops in caching layer
[ps-cgit] / cgit.h
diff --git a/cgit.h b/cgit.h
index 1e084d4cb02f743d2b4c014ce69b9a8cacad491f..7e4bfeff219442d64d6876a77a8fa855c376b38c 100644 (file)
--- a/cgit.h
+++ b/cgit.h
@@ -23,6 +23,7 @@ extern char *cgit_logo_link;
 extern char *cgit_virtual_root;
 extern char *cgit_cache_root;
 
+extern int cgit_max_lock_attempts;
 extern int cgit_cache_root_ttl;
 extern int cgit_cache_repo_ttl;
 extern int cgit_cache_dynamic_ttl;
@@ -56,9 +57,10 @@ extern void html_link_close(void);
 
 extern int cgit_read_config(const char *filename, configfn fn);
 
-extern int cache_lookup(struct cacheitem *item);
+extern void cache_prepare(struct cacheitem *item);
 extern int cache_lock(struct cacheitem *item);
 extern int cache_unlock(struct cacheitem *item);
+extern int cache_exist(struct cacheitem *item);
 extern int cache_expired(struct cacheitem *item);
 
 #endif /* CGIT_H */