|
diff --git a/cgit.h b/cgit.h index 3ee11bb..e0879bd 100644 --- a/ cgit.h+++ b/ cgit.h |
|
@@ -19,4 +19,15 @@ |
19 | |
19 | |
20 | |
20 | |
| |
21 | /* |
| |
22 | * The valid cgit repo-commands |
| |
23 | */ |
| |
24 | #define CMD_LOG 1 |
| |
25 | #define CMD_COMMIT 2 |
| |
26 | #define CMD_DIFF 3 |
| |
27 | #define CMD_TREE 4 |
| |
28 | #define CMD_VIEW 5 |
| |
29 | #define CMD_BLOB 6 |
| |
30 | #define CMD_SNAPSHOT 7 |
| |
31 | |
21 | typedef void (*configfn)(const char *name, const char *value); |
32 | typedef void (*configfn)(const char *name, const char *value); |
22 | typedef void (*filepair_fn)(struct diff_filepair *pair); |
33 | typedef void (*filepair_fn)(struct diff_filepair *pair); |
@@ -72,4 +83,5 @@ extern const char cgit_version[]; |
72 | extern struct repolist cgit_repolist; |
83 | extern struct repolist cgit_repolist; |
73 | extern struct repoinfo *cgit_repo; |
84 | extern struct repoinfo *cgit_repo; |
| |
85 | extern int cgit_cmd; |
74 | |
86 | |
75 | extern char *cgit_root_title; |
87 | extern char *cgit_root_title; |
@@ -114,4 +126,6 @@ extern int cgit_query_ofs; |
114 | extern int htmlfd; |
126 | extern int htmlfd; |
115 | |
127 | |
| |
128 | extern int cgit_get_cmd_index(const char *cmd); |
| |
129 | extern struct repoinfo *cgit_get_repoinfo(const char *url); |
116 | extern void cgit_global_config_cb(const char *name, const char *value); |
130 | extern void cgit_global_config_cb(const char *name, const char *value); |
117 | extern void cgit_repo_config_cb(const char *name, const char *value); |
131 | extern void cgit_repo_config_cb(const char *name, const char *value); |
@@ -152,4 +166,5 @@ extern int cgit_parse_query(char *txt, configfn fn); |
152 | extern struct commitinfo *cgit_parse_commit(struct commit *commit); |
166 | extern struct commitinfo *cgit_parse_commit(struct commit *commit); |
153 | extern struct taginfo *cgit_parse_tag(struct tag *tag); |
167 | extern struct taginfo *cgit_parse_tag(struct tag *tag); |
| |
168 | extern void cgit_parse_url(const char *url); |
154 | |
169 | |
155 | extern char *cache_safe_filename(const char *unsafe); |
170 | extern char *cache_safe_filename(const char *unsafe); |
|