aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.h
diff options
context:
space:
mode:
authorJohn Keeping2014-01-12 17:13:51 +0000
committerJason A. Donenfeld2014-01-14 02:00:07 +0100
commit632efb25c07c1b014a4e8cfbbea759f517c2aaf6 (patch)
treed749ef94576b829a4b8fc5ef330beb27de452bf1 /cgit.h
parented3497b0de6634350cd17b320538fba918d4084c (diff)
downloadcgit-632efb25c07c1b014a4e8cfbbea759f517c2aaf6.tar.gz
cgit-632efb25c07c1b014a4e8cfbbea759f517c2aaf6.tar.bz2
cgit-632efb25c07c1b014a4e8cfbbea759f517c2aaf6.zip
filter: add fprintf_filter function
This stops the code in cgit.c::print_repo needing to inspect the cgit_filter structure, meaning that we can abstract out different filter types that will have different fields that need to be printed. Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'cgit.h')
-rw-r--r--cgit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index e6e7715..9b4be26 100644
--- a/cgit.h
+++ b/cgit.h
@@ -345,6 +345,7 @@ extern int cgit_parse_snapshots_mask(const char *str);
345 345
346extern int cgit_open_filter(struct cgit_filter *filter, ...); 346extern int cgit_open_filter(struct cgit_filter *filter, ...);
347extern int cgit_close_filter(struct cgit_filter *filter); 347extern int cgit_close_filter(struct cgit_filter *filter);
348extern void cgit_fprintf_filter(struct cgit_filter *filter, FILE *f, const char *prefix);
348extern struct cgit_filter *cgit_new_filter(const char *cmd, filter_type filtertype); 349extern struct cgit_filter *cgit_new_filter(const char *cmd, filter_type filtertype);
349 350
350extern void cgit_prepare_repo_env(struct cgit_repo * repo); 351extern void cgit_prepare_repo_env(struct cgit_repo * repo);