diff options
author | Lars Hjemli | 2011-05-23 23:28:38 +0200 |
---|---|---|
committer | Lars Hjemli | 2011-05-23 23:28:38 +0200 |
commit | ab350a77b1d3b0e251cc28329f2e16f0566e521e (patch) | |
tree | 1af2b0760858fcd87ce1e628465f9b60af7815e3 /cgit.h | |
parent | 652a5a18db3b0409fedfaf8c5720446d87628ba0 (diff) | |
parent | c2b58ed8539fcfa4f05cc9da316bbc782f4b8f10 (diff) | |
download | cgit-ab350a77b1d3b0e251cc28329f2e16f0566e521e.tar.gz cgit-ab350a77b1d3b0e251cc28329f2e16f0566e521e.tar.bz2 cgit-ab350a77b1d3b0e251cc28329f2e16f0566e521e.zip |
Merge branch 'fh/filter-api'
Conflicts:
cgit.c
Diffstat (limited to 'cgit.h')
-rw-r--r-- | cgit.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -51,6 +51,10 @@ typedef void (*configfn)(const char *name, const char *value); | |||
51 | typedef void (*filepair_fn)(struct diff_filepair *pair); | 51 | typedef void (*filepair_fn)(struct diff_filepair *pair); |
52 | typedef void (*linediff_fn)(char *line, int len); | 52 | typedef void (*linediff_fn)(char *line, int len); |
53 | 53 | ||
54 | typedef enum { | ||
55 | ABOUT, COMMIT, SOURCE | ||
56 | } filter_type; | ||
57 | |||
54 | struct cgit_filter { | 58 | struct cgit_filter { |
55 | char *cmd; | 59 | char *cmd; |
56 | char **argv; | 60 | char **argv; |
@@ -315,7 +319,7 @@ extern const char *cgit_repobasename(const char *reponame); | |||
315 | 319 | ||
316 | extern int cgit_parse_snapshots_mask(const char *str); | 320 | extern int cgit_parse_snapshots_mask(const char *str); |
317 | 321 | ||
318 | extern int cgit_open_filter(struct cgit_filter *filter); | 322 | extern int cgit_open_filter(struct cgit_filter *filter, struct cgit_repo * repo); |
319 | extern int cgit_close_filter(struct cgit_filter *filter); | 323 | extern int cgit_close_filter(struct cgit_filter *filter); |
320 | 324 | ||
321 | extern int readfile(const char *path, char **buf, size_t *size); | 325 | extern int readfile(const char *path, char **buf, size_t *size); |