]> git.cameronkatri.com Git - cgit.git/blobdiff - cgit.h
ui-log: make some variables 'static'
[cgit.git] / cgit.h
diff --git a/cgit.h b/cgit.h
index 496d0f685075f66865d7c4d12d3ccd155e7b68dc..16f809297fc40d9eedf95a80fcaf7e4caaefb26f 100644 (file)
--- a/cgit.h
+++ b/cgit.h
@@ -53,7 +53,11 @@ typedef void (*filepair_fn)(struct diff_filepair *pair);
 typedef void (*linediff_fn)(char *line, int len);
 
 typedef enum {
-       ABOUT, COMMIT, SOURCE, EMAIL, AUTH
+       DIFF_UNIFIED, DIFF_SSDIFF, DIFF_STATONLY
+} diff_type;
+
+typedef enum {
+       ABOUT, COMMIT, SOURCE, EMAIL, AUTH, OWNER
 } filter_type;
 
 struct cgit_filter {
@@ -100,7 +104,10 @@ struct cgit_repo {
        struct cgit_filter *commit_filter;
        struct cgit_filter *source_filter;
        struct cgit_filter *email_filter;
+       struct cgit_filter *owner_filter;
        struct string_list submodules;
+       int hide;
+       int ignore;
 };
 
 typedef void (*repo_config_fn)(struct cgit_repo *repo, const char *name,
@@ -150,7 +157,7 @@ struct reflist {
 struct cgit_query {
        int has_symref;
        int has_sha1;
-       int has_ssdiff;
+       int has_difftype;
        char *raw;
        char *repo;
        char *page;
@@ -168,7 +175,7 @@ struct cgit_query {
        int nohead;
        char *sort;
        int showmsg;
-       int ssdiff;
+       diff_type difftype;
        int show_all;
        int context;
        int ignorews;
@@ -210,6 +217,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;
@@ -244,7 +252,7 @@ struct cgit_config {
        int summary_branches;
        int summary_log;
        int summary_tags;
-       int ssdiff;
+       diff_type difftype;
        int branch_sort;
        int commit_sort;
        struct string_list mimetypes;
@@ -252,6 +260,7 @@ struct cgit_config {
        struct cgit_filter *commit_filter;
        struct cgit_filter *source_filter;
        struct cgit_filter *email_filter;
+       struct cgit_filter *owner_filter;
        struct cgit_filter *auth_filter;
 };