about summary refs log tree commit diff
path: root/cgit.h
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2011-05-23 23:28:38 +0200
committerLars Hjemli <hjemli@gmail.com>2011-05-23 23:28:38 +0200
commitab350a77b1d3b0e251cc28329f2e16f0566e521e (patch)
tree1af2b0760858fcd87ce1e628465f9b60af7815e3 /cgit.h
parentMerge branch 'stable' (diff)
parentshared.c: use execvp() to execute filter commands (diff)
downloadcgit-pink-ab350a77b1d3b0e251cc28329f2e16f0566e521e.tar.gz
cgit-pink-ab350a77b1d3b0e251cc28329f2e16f0566e521e.zip
Merge branch 'fh/filter-api'
Conflicts:
	cgit.c
Diffstat (limited to '')
-rw-r--r--cgit.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cgit.h b/cgit.h
index ecae453..caa9d8e 100644
--- a/cgit.h
+++ b/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);