mirror of
https://git.zx2c4.com/cgit
synced 2025-07-02 22:34:32 +02:00
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>
This commit is contained in:
parent
ed3497b0de
commit
632efb25c0
3 changed files with 9 additions and 3 deletions
1
cgit.h
1
cgit.h
|
@ -345,6 +345,7 @@ 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);
|
||||
extern void cgit_fprintf_filter(struct cgit_filter *filter, FILE *f, const char *prefix);
|
||||
extern struct cgit_filter *cgit_new_filter(const char *cmd, filter_type filtertype);
|
||||
|
||||
extern void cgit_prepare_repo_env(struct cgit_repo * repo);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue