]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.h
Add a 'stats' page to each repo
[ps-cgit] / cgit.h
diff --git a/cgit.h b/cgit.h
index a1fa84114518dd6125ce5fb36cc2f2460cdb917f..85045c4a98285607e962e59f34788584a7f39ab9 100644 (file)
--- a/cgit.h
+++ b/cgit.h
@@ -61,6 +61,7 @@ struct cgit_repo {
        int snapshots;
        int enable_log_filecount;
        int enable_log_linecount;
+       int enable_stats;
 };
 
 struct cgit_repolist {
@@ -85,7 +86,7 @@ struct commitinfo {
 struct taginfo {
        char *tagger;
        char *tagger_email;
-       int tagger_date;
+       unsigned long tagger_date;
        char *msg;
 };
 
@@ -118,7 +119,10 @@ struct cgit_query {
        char *path;
        char *name;
        char *mimetype;
+       char *url;
+       char *period;
        int   ofs;
+       int nohead;
 };
 
 struct cgit_config {
@@ -149,6 +153,7 @@ struct cgit_config {
        int enable_index_links;
        int enable_log_filecount;
        int enable_log_linecount;
+       int enable_stats;
        int local_time;
        int max_repo_count;
        int max_commit_count;
@@ -166,6 +171,7 @@ struct cgit_config {
 struct cgit_page {
        time_t modified;
        time_t expires;
+       size_t size;
        char *mimetype;
        char *charset;
        char *filename;