-rw-r--r-- | cgit.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -20,2 +20,13 @@ +/* + * The valid cgit repo-commands + */ +#define CMD_LOG 1 +#define CMD_COMMIT 2 +#define CMD_DIFF 3 +#define CMD_TREE 4 +#define CMD_VIEW 5 +#define CMD_BLOB 6 +#define CMD_SNAPSHOT 7 + typedef void (*configfn)(const char *name, const char *value); @@ -74,2 +85,3 @@ extern struct repolist cgit_repolist; extern struct repoinfo *cgit_repo; +extern int cgit_cmd; @@ -78,2 +90,3 @@ extern char *cgit_css; extern char *cgit_logo; +extern char *cgit_index_header; extern char *cgit_logo_link; @@ -116,2 +129,4 @@ extern int htmlfd; +extern int cgit_get_cmd_index(const char *cmd); +extern struct repoinfo *cgit_get_repoinfo(const char *url); extern void cgit_global_config_cb(const char *name, const char *value); @@ -148,2 +163,3 @@ extern void html_link_close(void); extern void html_filemode(unsigned short mode); +extern int html_include(const char *filename); @@ -153,2 +169,3 @@ extern struct commitinfo *cgit_parse_commit(struct commit *commit); extern struct taginfo *cgit_parse_tag(struct tag *tag); +extern void cgit_parse_url(const char *url); |