aboutsummaryrefslogtreecommitdiff
path: root/src/cgi.h
blob: c7b173c0c794eb7fca4f7116e6dc0e8ca395e021 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef MAGI_INCLUDED_CGI
#define MAGI_INCLUDED_CGI

#include "field.h"
#include "request.h"


/*
 * Constructs request using environment variables and standart I/O;
 * Returns null if succeed, otherwise error code.
 */
int magi_cgi_request(
    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),
    int max_post
);


#endif