3 * @purpose Headers for the fastcgi web interface
9 /**Status codes that fcgi module handlers can return**/
10 typedef enum StatusCodes {
13 STATUS_UNAUTHORIZED = -2
16 typedef struct FCGIContext FCGIContext;
17 typedef void (*ModuleHandler) (FCGIContext *data, char *params);
19 extern int FCGI_Authorized(FCGIContext *context, const char *key);
20 extern char *FCGI_KeyPair(char *in, const char **key, const char **value);
21 extern void FCGI_BeginJSON(FCGIContext *context, StatusCodes status_code);
22 extern void FCGI_JSONPair(const char *key, const char *value);
23 extern void FCGI_JSONLong(const char *key, long value);
24 extern void FCGI_JSONDouble(const char *key, double value);
25 extern void FCGI_JSONKey(const char *key);
26 extern void FCGI_JSONValue(const char *format, ...);
27 extern void FCGI_EndJSON();
28 extern void FCGI_RejectJSON(FCGIContext *context, const char *params);
29 extern void FCGI_RequestLoop (void *data);