blob: 6101de68434c4514e999b5fc4e671b1863c8ca03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef MAGI_INCLUDED_CGI
#define MAGI_INCLUDED_CGI
#include "error.h"
#include "request.h"
#include "response.h"
/* Constructs non-post part of request from environment;
* Returns null only in case of error. */
int magi_request_cgi(struct magi_request * request);
/* Complete request with post data from standard input;
* Returns null only in case of error. */
int magi_request_resume_cgi(struct magi_request * request);
/* Sends response to standard output;
* Returns null only in case of error. */
int magi_response_cgi(struct magi_response * response);
/* Sends a standart response of Bad Request error to standard output;
* Returns null only in case of error. */
int magi_error_cgi(enum magi_error error);
#endif
|