author | Lars Hjemli <hjemli@gmail.com> | 2008-03-24 15:38:47 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-03-24 15:38:47 (UTC) |
commit | c5984a9896b39748e61daf6e620483749654b102 (patch) (unidiff) | |
tree | 5576deee2c5bcc92ae85ab07af215295c52d4143 /cmd.c | |
parent | f34478cbe0214a201e7ecef3e79ed6c957b7beee (diff) | |
download | cgit-c5984a9896b39748e61daf6e620483749654b102.zip cgit-c5984a9896b39748e61daf6e620483749654b102.tar.gz cgit-c5984a9896b39748e61daf6e620483749654b102.tar.bz2 |
Add separate header-files for each page/view
Yet another step towards removing cgit.h.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cmd.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1,26 +1,37 @@ | |||
1 | /* cmd.c: the cgit command dispatcher | 1 | /* cmd.c: the cgit command dispatcher |
2 | * | 2 | * |
3 | * Copyright (C) 2008 Lars Hjemli | 3 | * Copyright (C) 2008 Lars Hjemli |
4 | * | 4 | * |
5 | * Licensed under GNU General Public License v2 | 5 | * Licensed under GNU General Public License v2 |
6 | * (see COPYING for full license text) | 6 | * (see COPYING for full license text) |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include "cgit.h" | 9 | #include "cgit.h" |
10 | #include "cmd.h" | 10 | #include "cmd.h" |
11 | #include "ui-blob.h" | ||
12 | #include "ui-commit.h" | ||
13 | #include "ui-diff.h" | ||
14 | #include "ui-log.h" | ||
15 | #include "ui-patch.h" | ||
16 | #include "ui-refs.h" | ||
17 | #include "ui-repolist.h" | ||
18 | #include "ui-snapshot.h" | ||
19 | #include "ui-summary.h" | ||
20 | #include "ui-tag.h" | ||
21 | #include "ui-tree.h" | ||
11 | 22 | ||
12 | static void blob_fn(struct cgit_context *ctx) | 23 | static void blob_fn(struct cgit_context *ctx) |
13 | { | 24 | { |
14 | cgit_print_blob(ctx->qry.sha1, ctx->qry.path); | 25 | cgit_print_blob(ctx->qry.sha1, ctx->qry.path); |
15 | } | 26 | } |
16 | 27 | ||
17 | static void commit_fn(struct cgit_context *ctx) | 28 | static void commit_fn(struct cgit_context *ctx) |
18 | { | 29 | { |
19 | cgit_print_commit(ctx->qry.sha1); | 30 | cgit_print_commit(ctx->qry.sha1); |
20 | } | 31 | } |
21 | 32 | ||
22 | static void diff_fn(struct cgit_context *ctx) | 33 | static void diff_fn(struct cgit_context *ctx) |
23 | { | 34 | { |
24 | cgit_print_diff(ctx->qry.sha1, ctx->qry.sha2, ctx->qry.path); | 35 | cgit_print_diff(ctx->qry.sha1, ctx->qry.sha2, ctx->qry.path); |
25 | } | 36 | } |
26 | 37 | ||