summaryrefslogtreecommitdiffabout
path: root/cgit.h
Unidiff
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 893231d..d90ccdc 100644
--- a/cgit.h
+++ b/cgit.h
@@ -190,48 +190,49 @@ struct cgit_config {
190 int summary_tags; 190 int summary_tags;
191 struct string_list mimetypes; 191 struct string_list mimetypes;
192 struct cgit_filter *about_filter; 192 struct cgit_filter *about_filter;
193 struct cgit_filter *commit_filter; 193 struct cgit_filter *commit_filter;
194 struct cgit_filter *source_filter; 194 struct cgit_filter *source_filter;
195}; 195};
196 196
197struct cgit_page { 197struct cgit_page {
198 time_t modified; 198 time_t modified;
199 time_t expires; 199 time_t expires;
200 size_t size; 200 size_t size;
201 char *mimetype; 201 char *mimetype;
202 char *charset; 202 char *charset;
203 char *filename; 203 char *filename;
204 char *etag; 204 char *etag;
205 char *title; 205 char *title;
206 int status; 206 int status;
207 char *statusmsg; 207 char *statusmsg;
208}; 208};
209 209
210struct cgit_environment { 210struct cgit_environment {
211 char *cgit_config; 211 char *cgit_config;
212 char *http_host; 212 char *http_host;
213 char *https; 213 char *https;
214 char *no_http;
214 char *path_info; 215 char *path_info;
215 char *query_string; 216 char *query_string;
216 char *request_method; 217 char *request_method;
217 char *script_name; 218 char *script_name;
218 char *server_name; 219 char *server_name;
219 char *server_port; 220 char *server_port;
220}; 221};
221 222
222struct cgit_context { 223struct cgit_context {
223 struct cgit_environment env; 224 struct cgit_environment env;
224 struct cgit_query qry; 225 struct cgit_query qry;
225 struct cgit_config cfg; 226 struct cgit_config cfg;
226 struct cgit_repo *repo; 227 struct cgit_repo *repo;
227 struct cgit_page page; 228 struct cgit_page page;
228}; 229};
229 230
230struct cgit_snapshot_format { 231struct cgit_snapshot_format {
231 const char *suffix; 232 const char *suffix;
232 const char *mimetype; 233 const char *mimetype;
233 write_archive_fn_t write_func; 234 write_archive_fn_t write_func;
234 int bit; 235 int bit;
235}; 236};
236 237
237extern const char *cgit_version; 238extern const char *cgit_version;