diff options
Diffstat (limited to 'cgit.h')
-rw-r--r-- | cgit.h | 8 |
1 files changed, 8 insertions, 0 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; |
@@ -161,6 +165,7 @@ struct cgit_config { | |||
161 | char *agefile; | 165 | char *agefile; |
162 | char *cache_root; | 166 | char *cache_root; |
163 | char *clone_prefix; | 167 | char *clone_prefix; |
168 | char *clone_url; | ||
164 | char *css; | 169 | char *css; |
165 | char *favicon; | 170 | char *favicon; |
166 | char *footer; | 171 | char *footer; |
@@ -191,6 +196,7 @@ struct cgit_config { | |||
191 | int embedded; | 196 | int embedded; |
192 | int enable_filter_overrides; | 197 | int enable_filter_overrides; |
193 | int enable_gitweb_owner; | 198 | int enable_gitweb_owner; |
199 | int enable_http_clone; | ||
194 | int enable_index_links; | 200 | int enable_index_links; |
195 | int enable_commit_graph; | 201 | int enable_commit_graph; |
196 | int enable_log_filecount; | 202 | int enable_log_filecount; |
@@ -317,6 +323,8 @@ extern int cgit_parse_snapshots_mask(const char *str); | |||
317 | extern int cgit_open_filter(struct cgit_filter *filter); | 323 | extern int cgit_open_filter(struct cgit_filter *filter); |
318 | extern int cgit_close_filter(struct cgit_filter *filter); | 324 | extern int cgit_close_filter(struct cgit_filter *filter); |
319 | 325 | ||
326 | extern void cgit_prepare_repo_env(struct cgit_repo * repo); | ||
327 | |||
320 | extern int readfile(const char *path, char **buf, size_t *size); | 328 | extern int readfile(const char *path, char **buf, size_t *size); |
321 | 329 | ||
322 | extern char *expand_macros(const char *txt); | 330 | extern char *expand_macros(const char *txt); |