aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.h
diff options
context:
space:
mode:
Diffstat (limited to 'cgit.h')
-rw-r--r--cgit.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index 63847ff..c7ab5c6 100644
--- a/cgit.h
+++ b/cgit.h
@@ -51,6 +51,10 @@ typedef void (*configfn)(const char *name, const char *value);
51typedef void (*filepair_fn)(struct diff_filepair *pair); 51typedef void (*filepair_fn)(struct diff_filepair *pair);
52typedef void (*linediff_fn)(char *line, int len); 52typedef void (*linediff_fn)(char *line, int len);
53 53
54typedef enum {
55 ABOUT, COMMIT, SOURCE
56} filter_type;
57
54struct cgit_filter { 58struct 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);
318extern int cgit_open_filter(struct cgit_filter *filter); 324extern int cgit_open_filter(struct cgit_filter *filter);
319extern int cgit_close_filter(struct cgit_filter *filter); 325extern int cgit_close_filter(struct cgit_filter *filter);
320 326
327extern void cgit_prepare_repo_env(struct cgit_repo * repo);
328
321extern int readfile(const char *path, char **buf, size_t *size); 329extern int readfile(const char *path, char **buf, size_t *size);
322 330
323extern char *expand_macros(const char *txt); 331extern char *expand_macros(const char *txt);