diff options
Diffstat (limited to 'cgit.h')
-rw-r--r-- | cgit.h | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -174,10 +174,20 @@ struct cgit_config { | |||
174 | int summary_tags; | 174 | int summary_tags; |
175 | }; | 175 | }; |
176 | 176 | ||
177 | struct cgit_page { | ||
178 | time_t modified; | ||
179 | time_t expires; | ||
180 | char *mimetype; | ||
181 | char *charset; | ||
182 | char *filename; | ||
183 | char *title; | ||
184 | }; | ||
185 | |||
177 | struct cgit_context { | 186 | struct cgit_context { |
178 | struct cgit_query qry; | 187 | struct cgit_query qry; |
179 | struct cgit_config cfg; | 188 | struct cgit_config cfg; |
180 | struct cgit_repo *repo; | 189 | struct cgit_repo *repo; |
190 | struct cgit_page page; | ||
181 | }; | 191 | }; |
182 | 192 | ||
183 | extern const char *cgit_version; | 193 | extern const char *cgit_version; |
@@ -260,12 +270,10 @@ extern void cgit_object_link(struct object *obj); | |||
260 | extern void cgit_print_error(char *msg); | 270 | extern void cgit_print_error(char *msg); |
261 | extern void cgit_print_date(time_t secs, char *format); | 271 | extern void cgit_print_date(time_t secs, char *format); |
262 | extern void cgit_print_age(time_t t, time_t max_relative, char *format); | 272 | extern void cgit_print_age(time_t t, time_t max_relative, char *format); |
263 | extern void cgit_print_docstart(char *title, struct cacheitem *item); | 273 | extern void cgit_print_http_headers(struct cgit_context *ctx); |
274 | extern void cgit_print_docstart(struct cgit_context *ctx); | ||
264 | extern void cgit_print_docend(); | 275 | extern void cgit_print_docend(); |
265 | extern void cgit_print_pageheader(char *title, int show_search); | 276 | extern void cgit_print_pageheader(struct cgit_context *ctx); |
266 | extern void cgit_print_snapshot_start(const char *mimetype, | ||
267 | const char *filename, | ||
268 | struct cacheitem *item); | ||
269 | extern void cgit_print_filemode(unsigned short mode); | 277 | extern void cgit_print_filemode(unsigned short mode); |
270 | extern void cgit_print_branches(int maxcount); | 278 | extern void cgit_print_branches(int maxcount); |
271 | extern void cgit_print_tags(int maxcount); | 279 | extern void cgit_print_tags(int maxcount); |