X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/7e5c048505efe1902fb476cc2cb3160ff7df013d..97b3d252629a8a3b9d356c2532dec7611438e4b9:/cgit.h?ds=sidebyside diff --git a/cgit.h b/cgit.h index 00aca4c..f10ba05 100644 --- a/cgit.h +++ b/cgit.h @@ -48,6 +48,15 @@ typedef void (*configfn)(const char *name, const char *value); typedef void (*filepair_fn)(struct diff_filepair *pair); typedef void (*linediff_fn)(char *line, int len); +struct cgit_filter { + char *cmd; + char **argv; + int old_stdout; + int pipe_fh[2]; + int pid; + int exitstatus; +}; + struct cgit_repo { char *url; char *name; @@ -64,6 +73,8 @@ struct cgit_repo { int enable_log_linecount; int max_stats; time_t mtime; + struct cgit_filter *commit_filter; + struct cgit_filter *source_filter; }; struct cgit_repolist { @@ -136,6 +147,7 @@ struct cgit_config { char *css; char *favicon; char *footer; + char *head_include; char *header; char *index_header; char *index_info; @@ -155,6 +167,7 @@ struct cgit_config { int cache_repo_ttl; int cache_root_ttl; int cache_static_ttl; + int embedded; int enable_index_links; int enable_log_filecount; int enable_log_linecount; @@ -166,11 +179,14 @@ struct cgit_config { int max_repodesc_len; int max_stats; int nocache; + int noheader; int renamelimit; int snapshots; int summary_branches; int summary_log; int summary_tags; + struct cgit_filter *commit_filter; + struct cgit_filter *source_filter; }; struct cgit_page { @@ -180,6 +196,7 @@ struct cgit_page { char *mimetype; char *charset; char *filename; + char *etag; char *title; int status; char *statusmsg; @@ -244,5 +261,8 @@ 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_close_filter(struct cgit_filter *filter); + #endif /* CGIT_H */