X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/542f6a433034935a1aa895f7ef3273968915a5d1..d6f6072560c963065b13c704fa1fa6f8950e4bac:/cgit.h diff --git a/cgit.h b/cgit.h index 78b30ba..d0fff1f 100644 --- a/cgit.h +++ b/cgit.h @@ -129,6 +129,15 @@ struct cgit_query { int showmsg; }; +struct cgit_filter { + char *cmd; + char **argv; + int old_stdout; + int pipe_fh[2]; + int pid; + int exitstatus; +}; + struct cgit_config { char *agefile; char *cache_root; @@ -156,6 +165,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; @@ -167,6 +177,7 @@ struct cgit_config { int max_repodesc_len; int max_stats; int nocache; + int noheader; int renamelimit; int snapshots; int summary_branches; @@ -246,5 +257,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 */