diff options
Diffstat (limited to 'src/fastcgi.h')
-rw-r--r-- | src/fastcgi.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/fastcgi.h b/src/fastcgi.h index 1c2cda7..d2199b4 100644 --- a/src/fastcgi.h +++ b/src/fastcgi.h @@ -11,12 +11,20 @@ struct magi_session { struct magi_socket_list * sockets; }; -int magi_fcgi(struct magi_session * session); +int magi_fcgi(struct magi_session * session, int socket); /* * Returns null if succeed, otherwise error code. */ -int magi_accept(struct magi_request * request, struct magi_session * session); +int magi_fcgi_accept( + struct magi_request * request, + struct magi_session * session, + /* Callback will be used only for files loaded via multipart. */ + /* Null callback disables callback system. */ + void (*callback)( + struct magi_field * field, char * buffer, int len, void * thing), + void * thing, + int max_post); #endif |