aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.h
diff options
context:
space:
mode:
Diffstat (limited to 'cgit.h')
-rw-r--r--cgit.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/cgit.h b/cgit.h
index f402466..e5b3f5e 100644
--- a/cgit.h
+++ b/cgit.h
@@ -21,13 +21,13 @@
21/* 21/*
22 * The valid cgit repo-commands 22 * The valid cgit repo-commands
23 */ 23 */
24#define CMD_LOG = 1; 24#define CMD_LOG 1
25#define CMD_COMMIT = 1; 25#define CMD_COMMIT 2
26#define CMD_DIFF = 1; 26#define CMD_DIFF 3
27#define CMD_TREE = 1; 27#define CMD_TREE 4
28#define CMD_VIEW = 1; 28#define CMD_VIEW 5
29#define CMD_BLOB = 1; 29#define CMD_BLOB 6
30#define CMD_SNAPSHOT = 1; 30#define CMD_SNAPSHOT 7
31 31
32typedef void (*configfn)(const char *name, const char *value); 32typedef void (*configfn)(const char *name, const char *value);
33typedef void (*filepair_fn)(struct diff_filepair *pair); 33typedef void (*filepair_fn)(struct diff_filepair *pair);
@@ -82,6 +82,7 @@ extern const char cgit_version[];
82 82
83extern struct repolist cgit_repolist; 83extern struct repolist cgit_repolist;
84extern struct repoinfo *cgit_repo; 84extern struct repoinfo *cgit_repo;
85extern int cgit_cmd;
85 86
86extern char *cgit_root_title; 87extern char *cgit_root_title;
87extern char *cgit_css; 88extern char *cgit_css;
@@ -162,6 +163,7 @@ extern int cgit_read_config(const char *filename, configfn fn);
162extern int cgit_parse_query(char *txt, configfn fn); 163extern int cgit_parse_query(char *txt, configfn fn);
163extern struct commitinfo *cgit_parse_commit(struct commit *commit); 164extern struct commitinfo *cgit_parse_commit(struct commit *commit);
164extern struct taginfo *cgit_parse_tag(struct tag *tag); 165extern struct taginfo *cgit_parse_tag(struct tag *tag);
166extern void cgit_parse_url(const char *url);
165 167
166extern char *cache_safe_filename(const char *unsafe); 168extern char *cache_safe_filename(const char *unsafe);
167extern int cache_lock(struct cacheitem *item); 169extern int cache_lock(struct cacheitem *item);