summaryrefslogtreecommitdiffabout
path: root/cgit.h
Unidiff
Diffstat (limited to 'cgit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/cgit.h b/cgit.h
index 438301d..f10ba05 100644
--- a/cgit.h
+++ b/cgit.h
@@ -43,32 +43,43 @@
43 * Default encoding 43 * Default encoding
44 */ 44 */
45#define PAGE_ENCODING "UTF-8" 45#define PAGE_ENCODING "UTF-8"
46 46
47typedef void (*configfn)(const char *name, const char *value); 47typedef void (*configfn)(const char *name, const char *value);
48typedef void (*filepair_fn)(struct diff_filepair *pair); 48typedef void (*filepair_fn)(struct diff_filepair *pair);
49typedef void (*linediff_fn)(char *line, int len); 49typedef void (*linediff_fn)(char *line, int len);
50 50
51struct cgit_filter {
52 char *cmd;
53 char **argv;
54 int old_stdout;
55 int pipe_fh[2];
56 int pid;
57 int exitstatus;
58};
59
51struct cgit_repo { 60struct cgit_repo {
52 char *url; 61 char *url;
53 char *name; 62 char *name;
54 char *path; 63 char *path;
55 char *desc; 64 char *desc;
56 char *owner; 65 char *owner;
57 char *defbranch; 66 char *defbranch;
58 char *group; 67 char *group;
59 char *module_link; 68 char *module_link;
60 char *readme; 69 char *readme;
61 char *clone_url; 70 char *clone_url;
62 int snapshots; 71 int snapshots;
63 int enable_log_filecount; 72 int enable_log_filecount;
64 int enable_log_linecount; 73 int enable_log_linecount;
65 int max_stats; 74 int max_stats;
66 time_t mtime; 75 time_t mtime;
76 struct cgit_filter *commit_filter;
77 struct cgit_filter *source_filter;
67}; 78};
68 79
69struct cgit_repolist { 80struct cgit_repolist {
70 int length; 81 int length;
71 int count; 82 int count;
72 struct cgit_repo *repos; 83 struct cgit_repo *repos;
73}; 84};
74 85
@@ -124,25 +135,16 @@ struct cgit_query {
124 char *url; 135 char *url;
125 char *period; 136 char *period;
126 int ofs; 137 int ofs;
127 int nohead; 138 int nohead;
128 char *sort; 139 char *sort;
129 int showmsg; 140 int showmsg;
130}; 141};
131 142
132struct cgit_filter {
133 char *cmd;
134 char **argv;
135 int old_stdout;
136 int pipe_fh[2];
137 int pid;
138 int exitstatus;
139};
140
141struct cgit_config { 143struct cgit_config {
142 char *agefile; 144 char *agefile;
143 char *cache_root; 145 char *cache_root;
144 char *clone_prefix; 146 char *clone_prefix;
145 char *css; 147 char *css;
146 char *favicon; 148 char *favicon;
147 char *footer; 149 char *footer;
148 char *head_include; 150 char *head_include;