]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.h
authors: specify maintainers
[ps-cgit] / cgit.h
diff --git a/cgit.h b/cgit.h
index 850b7925b374ca37f05a9c86e84e47ed3acbdab8..e6e7715bbaa8c146676005428250a6dc4a8687a4 100644 (file)
--- a/cgit.h
+++ b/cgit.h
@@ -59,10 +59,10 @@ typedef enum {
 struct cgit_filter {
        char *cmd;
        char **argv;
 struct cgit_filter {
        char *cmd;
        char **argv;
+       int extra_args;
        int old_stdout;
        int pipe_fh[2];
        int pid;
        int old_stdout;
        int pipe_fh[2];
        int pid;
-       int exitstatus;
 };
 
 struct cgit_repo {
 };
 
 struct cgit_repo {
@@ -73,7 +73,7 @@ struct cgit_repo {
        char *owner;
        char *defbranch;
        char *module_link;
        char *owner;
        char *defbranch;
        char *module_link;
-       char *readme;
+       struct string_list readme;
        char *section;
        char *clone_url;
        char *logo;
        char *section;
        char *clone_url;
        char *logo;
@@ -183,7 +183,7 @@ struct cgit_config {
        char *mimetype_file;
        char *module_link;
        char *project_list;
        char *mimetype_file;
        char *module_link;
        char *project_list;
-       char *readme;
+       struct string_list readme;
        char *robots;
        char *root_title;
        char *root_desc;
        char *robots;
        char *root_title;
        char *root_desc;
@@ -200,6 +200,7 @@ struct cgit_config {
        int cache_root_ttl;
        int cache_scanrc_ttl;
        int cache_static_ttl;
        int cache_root_ttl;
        int cache_scanrc_ttl;
        int cache_static_ttl;
+       int cache_about_ttl;
        int case_sensitive_sort;
        int embedded;
        int enable_filter_overrides;
        int case_sensitive_sort;
        int embedded;
        int enable_filter_overrides;
@@ -342,8 +343,9 @@ extern const char *cgit_repobasename(const char *reponame);
 
 extern int cgit_parse_snapshots_mask(const char *str);
 
 
 extern int cgit_parse_snapshots_mask(const char *str);
 
-extern int cgit_open_filter(struct cgit_filter *filter);
+extern int cgit_open_filter(struct cgit_filter *filter, ...);
 extern int cgit_close_filter(struct cgit_filter *filter);
 extern int cgit_close_filter(struct cgit_filter *filter);
+extern struct cgit_filter *cgit_new_filter(const char *cmd, filter_type filtertype);
 
 extern void cgit_prepare_repo_env(struct cgit_repo * repo);
 
 
 extern void cgit_prepare_repo_env(struct cgit_repo * repo);