aboutsummaryrefslogtreecommitdiff
path: root/src/fastcgi.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fastcgi.h')
-rw-r--r--src/fastcgi.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/fastcgi.h b/src/fastcgi.h
index e69de29..9213c3c 100644
--- a/src/fastcgi.h
+++ b/src/fastcgi.h
@@ -0,0 +1,21 @@
+#ifndef MAGI_INCLUDED_FASTCGI
+#define MAGI_INCLUDED_FASTCGI
+
+#include "field.h"
+#include "request.h"
+
+
+struct magi_session {
+ void (*callback)(struct magi_field * field, char * buffer, int len);
+ int max_post;
+ struct magi_socket_list * sockets;
+};
+
+/*
+ * Returns null if succeed, otherwise error code.
+ */
+int magi_fast_cgi_request(
+ struct magi_request * request, struct magi_session * session);
+
+
+#endif