2
0
mirror of https://git.zx2c4.com/cgit synced 2025-08-31 06:15:08 +00:00

Cleanup handling of environment variables

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
Lars Hjemli
2009-08-10 08:21:09 +02:00
parent e6cd7121ed
commit 60a26272e0
3 changed files with 45 additions and 33 deletions

13
cgit.h
View File

@@ -207,7 +207,20 @@ struct cgit_page {
char *statusmsg;
};
struct cgit_environment {
char *cgit_config;
char *http_host;
char *https;
char *path_info;
char *query_string;
char *request_method;
char *script_name;
char *server_name;
char *server_port;
};
struct cgit_context {
struct cgit_environment env;
struct cgit_query qry;
struct cgit_config cfg;
struct cgit_repo *repo;