summaryrefslogtreecommitdiffabout
path: root/cgit.h
Side-by-side diff
Diffstat (limited to 'cgit.h') (more/less context) (ignore whitespace changes)
-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
@@ -23,9 +23,9 @@
*/
-#define CMD_LOG = 1;
-#define CMD_COMMIT = 1;
-#define CMD_DIFF = 1;
-#define CMD_TREE = 1;
-#define CMD_VIEW = 1;
-#define CMD_BLOB = 1;
-#define CMD_SNAPSHOT = 1;
+#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
@@ -84,2 +84,3 @@ extern struct repolist cgit_repolist;
extern struct repoinfo *cgit_repo;
+extern int cgit_cmd;
@@ -164,2 +165,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);