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) (side-by-side diff) | |
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,42 +1,53 @@ /* cmd.c: the cgit command dispatcher * * Copyright (C) 2008 Lars Hjemli * * Licensed under GNU General Public License v2 * (see COPYING for full license text) */ #include "cgit.h" #include "cmd.h" +#include "ui-blob.h" +#include "ui-commit.h" +#include "ui-diff.h" +#include "ui-log.h" +#include "ui-patch.h" +#include "ui-refs.h" +#include "ui-repolist.h" +#include "ui-snapshot.h" +#include "ui-summary.h" +#include "ui-tag.h" +#include "ui-tree.h" static void blob_fn(struct cgit_context *ctx) { cgit_print_blob(ctx->qry.sha1, ctx->qry.path); } static void commit_fn(struct cgit_context *ctx) { cgit_print_commit(ctx->qry.sha1); } static void diff_fn(struct cgit_context *ctx) { cgit_print_diff(ctx->qry.sha1, ctx->qry.sha2, ctx->qry.path); } static void repolist_fn(struct cgit_context *ctx) { cgit_print_repolist(); } static void log_fn(struct cgit_context *ctx) { cgit_print_log(ctx->qry.sha1, ctx->qry.ofs, ctx->cfg.max_commit_count, ctx->qry.grep, ctx->qry.search, ctx->qry.path, 1); } static void patch_fn(struct cgit_context *ctx) { cgit_print_patch(ctx->qry.sha1); } |