Home | History | Annotate | Download | only in cgi

Lines Matching refs:cgi

26 /* HACK: Set this value if you want to treat empty CGI Query variables as
31 typedef struct _cgi CGI;
33 typedef int (*UPLOAD_CB)(CGI *, int nread, int expected);
34 typedef NEOERR* (*CGI_PARSE_CB)(CGI *, char *method, char *ctype, void *rock);
51 HDF *hdf; /* the HDF dataset associated with this CGI */
89 * Function: cgi_init - Initialize ClearSilver CGI environment
90 * Description: cgi_init initializes the ClearSilver CGI environment,
92 * the standard CGI environment variables into that dataset,
97 * on the CGI program. These variables have to be
101 * Input: cgi - a pointer to a CGI pointer
106 * Output: cgi - an allocated CGI struct, including
107 * Return: NERR_PARSE - parse error in CGI input
111 NEOERR *cgi_init (CGI **cgi, HDF *hdf);
114 * Function: cgi_parse - Parse incoming CGI data
130 * Input: cgi - a pointer to a CGI pointer
131 * Output: Either data populated into files and cgi->hdf, or whatever
133 * Return: NERR_PARSE - parse error in CGI input
136 * NERR_IO - error reading HDF file or reading CGI stdin, or
140 NEOERR *cgi_parse (CGI *cgi);
144 * Description: The ClearSilver CGI Kit has built-in functionality to handle
171 * l = hdf_get_value (cgi->hdf, "CGI.ContentLength", NULL);
181 * Input: cgi - a CGI struct
191 NEOERR *cgi_register_parse_cb(CGI *cgi, const char *method, const char *ctype,
195 * Function: cgi_destroy - deallocate the data associated with a CGI
197 * CGI, which mostly means the associated HDF and removal
202 * Input: cgi - a pointer to a pointer to a CGI struct
203 * Output: cgi - NULL on output
206 void cgi_destroy (CGI **cgi);
209 * Function: cgi_cs_init - initialize CS parser with the CGI defaults
210 * Description: cgi_cs_init initializes a CS parser with the CGI HDF
211 * context, and registers the standard CGI filters
212 * Input: cgi - a pointer a CGI struct allocated with cgi_init
217 NEOERR *cgi_cs_init(CGI *cgi, CSPARSE **cs);
220 * Function: cgi_display - render and display the CGI output to the user
222 * cs_file using the CGI's HDF data set, and send the
225 * Input: cgi - a pointer a CGI struct allocated with cgi_init
231 NEOERR *cgi_display (CGI *cgi, const char *cs_file);
234 * Function: cgi_output - display the CGI output to the user
238 * Input: cgi - a pointer a CGI struct allocated with cgi_init
239 * output - the data to send to output from the CGI
244 NEOERR *cgi_output (CGI *cgi, STRING *output);
252 * Input: cgi - a pointer to a CGI struct allocated with cgi_init
261 FILE *cgi_filehandle (CGI *cgi, const char *form_name);
269 * Input: cgi - a pointer to a CGI struct
274 void cgi_neo_error (CGI *cgi, NEOERR *err);
282 * Input: cgi - a pointer to a CGI struct
287 void cgi_error (CGI *cgi, const char *fmt, ...)
292 * Description: cgi_debug_init initializes a CGI program for standalone
293 * debugging. By running a ClearSilver CGI program with a
295 * CGI program will load that file of the form K=V as a set
296 * of HTTP/CGI environment variables. This allows you to
363 * use a format like cgi_redirect (cgi, "%s", buf)
364 * Input: cgi - cgi struct
369 void cgi_redirect (CGI *cgi, const char *fmt, ...)
380 * use a format like cgi_redirect (cgi, "%s", buf)
381 * Input: cgi - cgi struct
386 void cgi_redirect_uri (CGI *cgi, const char *fmt, ...)
393 * Input: cgi - cgi struct
400 void cgi_vredirect (CGI *cgi, int uri, const char *fmt, va_list ap);
407 * portion of the CGI HDF data set, and return the matching
415 * Input: cgi - a CGI struct
421 char *cgi_cookie_authority (CGI *cgi, const char *host);
429 * Input: cgi - a CGI struct
446 NEOERR *cgi_cookie_set (CGI *cgi, const char *name, const char *value,
460 * Input: cgi - a CGI struct
467 NEOERR *cgi_cookie_clear (CGI *cgi, const char *name, const char *domain,
479 NEOERR * parse_rfc2388 (CGI *cgi);
480 NEOERR * open_upload(CGI *cgi, int unlink_files, FILE **fpw);