mirror of
https://git.zx2c4.com/cgit
synced 2025-07-22 03:44:22 +02:00
Merge branch 'fh/filter-api'
Conflicts: cgit.c
This commit is contained in:
commit
ab350a77b1
11 changed files with 127 additions and 21 deletions
6
cgit.h
6
cgit.h
|
@ -51,6 +51,10 @@ typedef void (*configfn)(const char *name, const char *value);
|
|||
typedef void (*filepair_fn)(struct diff_filepair *pair);
|
||||
typedef void (*linediff_fn)(char *line, int len);
|
||||
|
||||
typedef enum {
|
||||
ABOUT, COMMIT, SOURCE
|
||||
} filter_type;
|
||||
|
||||
struct cgit_filter {
|
||||
char *cmd;
|
||||
char **argv;
|
||||
|
@ -315,7 +319,7 @@ 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_open_filter(struct cgit_filter *filter, struct cgit_repo * repo);
|
||||
extern int cgit_close_filter(struct cgit_filter *filter);
|
||||
|
||||
extern int readfile(const char *path, char **buf, size_t *size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue