aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cgi.h2
-rw-r--r--src/fastcgi.h5
-rw-r--r--src/request.h4
3 files changed, 6 insertions, 5 deletions
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;
};