Unidiff1 files changed, 12 insertions, 0 deletions
|
diff --git a/cgit.h b/cgit.h index 8c64efe..d0fff1f 100644 --- a/ cgit.h+++ b/ cgit.h |
|
@@ -124,16 +124,25 @@ struct cgit_query { |
124 | char *url; |
124 | char *url; |
125 | char *period; |
125 | char *period; |
126 | int ofs; |
126 | int ofs; |
127 | int nohead; |
127 | int nohead; |
128 | char *sort; |
128 | char *sort; |
129 | int showmsg; |
129 | int showmsg; |
130 | }; |
130 | }; |
131 | |
131 | |
| |
132 | struct 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 | |
132 | struct cgit_config { |
141 | struct cgit_config { |
133 | char *agefile; |
142 | char *agefile; |
134 | char *cache_root; |
143 | char *cache_root; |
135 | char *clone_prefix; |
144 | char *clone_prefix; |
136 | char *css; |
145 | char *css; |
137 | char *favicon; |
146 | char *favicon; |
138 | char *footer; |
147 | char *footer; |
139 | char *head_include; |
148 | char *head_include; |
@@ -243,10 +252,13 @@ extern char *fmt(const char *format,...); |
243 | extern struct commitinfo *cgit_parse_commit(struct commit *commit); |
252 | extern struct commitinfo *cgit_parse_commit(struct commit *commit); |
244 | extern struct taginfo *cgit_parse_tag(struct tag *tag); |
253 | extern struct taginfo *cgit_parse_tag(struct tag *tag); |
245 | extern void cgit_parse_url(const char *url); |
254 | extern void cgit_parse_url(const char *url); |
246 | |
255 | |
247 | extern const char *cgit_repobasename(const char *reponame); |
256 | extern const char *cgit_repobasename(const char *reponame); |
248 | |
257 | |
249 | extern int cgit_parse_snapshots_mask(const char *str); |
258 | extern int cgit_parse_snapshots_mask(const char *str); |
250 | |
259 | |
| |
260 | extern int cgit_open_filter(struct cgit_filter *filter); |
| |
261 | extern int cgit_close_filter(struct cgit_filter *filter); |
| |
262 | |
251 | |
263 | |
252 | #endif /* CGIT_H */ |
264 | #endif /* CGIT_H */ |
|