summaryrefslogtreecommitdiffabout
path: root/cgit.h
authorLars Hjemli <hjemli@gmail.com>2008-08-06 08:53:50 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2008-08-06 09:21:30 (UTC)
commite5da4bca54574522b28f88cab0dc8ebad9e35a73 (patch) (unidiff)
tree08e02b9e0962a12040faab27e7841a74a800ddf2 /cgit.h
parent02a545e63454530c1639014d3239c14ced2022c6 (diff)
downloadcgit-e5da4bca54574522b28f88cab0dc8ebad9e35a73.zip
cgit-e5da4bca54574522b28f88cab0dc8ebad9e35a73.tar.gz
cgit-e5da4bca54574522b28f88cab0dc8ebad9e35a73.tar.bz2
Implement plain view
This implements a way to access plain blobs by path (similar to the tree view) instead of by sha1. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index b01fa31..e2af0c2 100644
--- a/cgit.h
+++ b/cgit.h
@@ -156,24 +156,25 @@ struct cgit_config {
156 int max_repodesc_len; 156 int max_repodesc_len;
157 int nocache; 157 int nocache;
158 int renamelimit; 158 int renamelimit;
159 int snapshots; 159 int snapshots;
160 int summary_branches; 160 int summary_branches;
161 int summary_log; 161 int summary_log;
162 int summary_tags; 162 int summary_tags;
163}; 163};
164 164
165struct cgit_page { 165struct cgit_page {
166 time_t modified; 166 time_t modified;
167 time_t expires; 167 time_t expires;
168 size_t size;
168 char *mimetype; 169 char *mimetype;
169 char *charset; 170 char *charset;
170 char *filename; 171 char *filename;
171 char *title; 172 char *title;
172}; 173};
173 174
174struct cgit_context { 175struct cgit_context {
175 struct cgit_query qry; 176 struct cgit_query qry;
176 struct cgit_config cfg; 177 struct cgit_config cfg;
177 struct cgit_repo *repo; 178 struct cgit_repo *repo;
178 struct cgit_page page; 179 struct cgit_page page;
179}; 180};