aboutsummaryrefslogtreecommitdiffstats
path: root/filter.c
Commit message (Expand)AuthorAgeFilesLines
* 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> John Keeping2014-01-141-0/+5
* filter: pass extra arguments via cgit_open_filter•••This avoids poking into the filter data structure at various points in the code. We rely on the fact that the number of arguments is fixed based on the filter type (set in cgit_new_filter) and that the call sites all know which filter type they're using. Signed-off-by: John Keeping <john@keeping.me.uk> John Keeping2014-01-121-11/+24
* filter: split filter functions into their own file•••A first step for more interesting things. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Jason A. Donenfeld2014-01-101-0/+82