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