X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/389cc17357e2040c9542d3e085f64a8d2f085e9a..ed3497b0de6634350cd17b320538fba918d4084c:/cgit.h diff --git a/cgit.h b/cgit.h index 850b792..e6e7715 100644 --- a/cgit.h +++ b/cgit.h @@ -59,10 +59,10 @@ typedef enum { struct cgit_filter { char *cmd; char **argv; + int extra_args; int old_stdout; int pipe_fh[2]; int pid; - int exitstatus; }; struct cgit_repo { @@ -73,7 +73,7 @@ struct cgit_repo { char *owner; char *defbranch; char *module_link; - char *readme; + struct string_list readme; char *section; char *clone_url; char *logo; @@ -183,7 +183,7 @@ struct cgit_config { char *mimetype_file; char *module_link; char *project_list; - char *readme; + struct string_list readme; 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_about_ttl; 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_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 struct cgit_filter *cgit_new_filter(const char *cmd, filter_type filtertype); extern void cgit_prepare_repo_env(struct cgit_repo * repo);