]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.h
Add a cache-snapshot-ttl configuration variable
[ps-cgit] / cgit.h
diff --git a/cgit.h b/cgit.h
index e200a06994c178468f670f63dcb13cc36de19d2a..0badc642ec65c9b4166afe8952cd04b4322fa3c3 100644 (file)
--- a/cgit.h
+++ b/cgit.h
@@ -53,7 +53,7 @@ typedef void (*filepair_fn)(struct diff_filepair *pair);
 typedef void (*linediff_fn)(char *line, int len);
 
 typedef enum {
-       ABOUT, COMMIT, SOURCE, EMAIL
+       ABOUT, COMMIT, SOURCE, EMAIL, AUTH
 } filter_type;
 
 struct cgit_filter {
@@ -210,6 +210,7 @@ struct cgit_config {
        int cache_scanrc_ttl;
        int cache_static_ttl;
        int cache_about_ttl;
+       int cache_snapshot_ttl;
        int case_sensitive_sort;
        int embedded;
        int enable_filter_overrides;
@@ -252,6 +253,7 @@ struct cgit_config {
        struct cgit_filter *commit_filter;
        struct cgit_filter *source_filter;
        struct cgit_filter *email_filter;
+       struct cgit_filter *auth_filter;
 };
 
 struct cgit_page {
@@ -278,6 +280,10 @@ struct cgit_environment {
        const char *script_name;
        const char *server_name;
        const char *server_port;
+       const char *http_cookie;
+       const char *http_referer;
+       unsigned int content_length;
+       int authenticated;
 };
 
 struct cgit_context {