From ca08ed93e67a99868f01d21f0d2e34d6a6757c75 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Wed, 13 Nov 2019 20:55:11 +0300 Subject: [magi] --- src/cgi.h | 2 +- src/fastcgi.h | 5 +++-- src/request.h | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/cgi.h b/src/cgi.h index 85e5b2a..dccb20e 100644 --- a/src/cgi.h +++ b/src/cgi.h @@ -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; }; -- cgit v1.2.3