diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2019-11-13 20:55:11 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2019-11-13 20:55:11 +0300 |
commit | ca08ed93e67a99868f01d21f0d2e34d6a6757c75 (patch) | |
tree | 0475bec225b561f018b3d7b3d2961266c9d5b191 /src | |
parent | 23f3f8592c21ee58b0ac040736b5b766d52de193 (diff) | |
download | magi-ca08ed93e67a99868f01d21f0d2e34d6a6757c75.tar magi-ca08ed93e67a99868f01d21f0d2e34d6a6757c75.tar.xz magi-ca08ed93e67a99868f01d21f0d2e34d6a6757c75.zip |
[magi]
Diffstat (limited to 'src')
-rw-r--r-- | src/cgi.h | 2 | ||||
-rw-r--r-- | src/fastcgi.h | 5 | ||||
-rw-r--r-- | src/request.h | 4 |
3 files changed, 6 insertions, 5 deletions
@@ -9,7 +9,7 @@ * Constructs request using environment variables and standart I/O; * Returns null if succeed, otherwise error code. */ -int magi_cgi_request(struct magi_request * request, +int magi_cgi(struct magi_request * request, /* Callback will be used only for fields loaded via multipart. */ /* Null callback disables callback system. */ void (*callback)(struct magi_field * field, char * buffer, int len), diff --git a/src/fastcgi.h b/src/fastcgi.h index 9213c3c..1c2cda7 100644 --- a/src/fastcgi.h +++ b/src/fastcgi.h @@ -11,11 +11,12 @@ struct magi_session { struct magi_socket_list * sockets; }; +int magi_fcgi(struct magi_session * session); + /* * Returns null if succeed, otherwise error code. */ -int magi_fast_cgi_request( - struct magi_request * request, struct magi_session * session); +int magi_accept(struct magi_request * request, struct magi_session * session); #endif diff --git a/src/request.h b/src/request.h index bd9c521..e556125 100644 --- a/src/request.h +++ b/src/request.h @@ -10,7 +10,7 @@ * Request * * Can be generated via CGI handler (magi_cgi_request) or - * as session in Fast CGI (magi_fast_cgi_request). + * as session in Fast CGI (magi_fcgi_request). * * Example: http://example.com/cgi-bin/script/foo/bar?var2=url%20enc * method: get @@ -47,7 +47,7 @@ struct magi_request { char * server_software; char * path_info; struct magi_param_list * http_params; - /* TODO: error. */ + struct magi_error * error; }; |