author | Lars Hjemli <hjemli@gmail.com> | 2009-08-10 06:21:09 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2009-08-10 06:21:09 (UTC) |
commit | 60a26272e0ca529407fe6b613f061f04ba585d53 (patch) (unidiff) | |
tree | c2b6ee3c19a44bd276043650298229c481ca4535 /cgit.h | |
parent | e6cd7121edf55c13f04cd5d6fca8f07c4035ce0a (diff) | |
download | cgit-60a26272e0ca529407fe6b613f061f04ba585d53.zip cgit-60a26272e0ca529407fe6b613f061f04ba585d53.tar.gz cgit-60a26272e0ca529407fe6b613f061f04ba585d53.tar.bz2 |
Cleanup handling of environment variables
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgit.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -202,17 +202,30 @@ struct cgit_page { | |||
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 | ||
210 | struct cgit_environment { | ||
211 | char *cgit_config; | ||
212 | char *http_host; | ||
213 | char *https; | ||
214 | char *path_info; | ||
215 | char *query_string; | ||
216 | char *request_method; | ||
217 | char *script_name; | ||
218 | char *server_name; | ||
219 | char *server_port; | ||
220 | }; | ||
221 | |||
210 | struct cgit_context { | 222 | struct cgit_context { |
223 | struct cgit_environment env; | ||
211 | struct cgit_query qry; | 224 | struct cgit_query qry; |
212 | struct cgit_config cfg; | 225 | struct cgit_config cfg; |
213 | struct cgit_repo *repo; | 226 | struct cgit_repo *repo; |
214 | struct cgit_page page; | 227 | struct cgit_page page; |
215 | }; | 228 | }; |
216 | 229 | ||
217 | struct cgit_snapshot_format { | 230 | struct cgit_snapshot_format { |
218 | const char *suffix; | 231 | const char *suffix; |