Main Page | Modules | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

mod_cgi.h File Reference

#include "mod_include.h"

Include dependency graph for mod_cgi.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define _MOD_CGI_H   1

Enumerations

enum  prog_types { RUN_AS_SSI, RUN_AS_CGI }

Functions

 APR_DECLARE_OPTIONAL_FN (apr_status_t, ap_cgi_build_command,(const char **cmd, const char ***argv, request_rec *r, apr_pool_t *p, cgi_exec_info_t *e_info))


Define Documentation

#define _MOD_CGI_H   1
 

Definition at line 18 of file mod_cgi.h.


Enumeration Type Documentation

enum prog_types
 

Enumeration values:
RUN_AS_SSI 
RUN_AS_CGI 

Definition at line 22 of file mod_cgi.h.


Function Documentation

APR_DECLARE_OPTIONAL_FN apr_status_t  ,
ap_cgi_build_command  ,
(const char **cmd, const char ***argv, request_rec *r, apr_pool_t *p, cgi_exec_info_t *e_info) 
 

Registerable optional function to override CGI behavior; Reprocess the command and arguments to execute the given CGI script.

Parameters:
cmd Pointer to the command to execute (may be overridden)
argv Pointer to the arguments to pass (may be overridden)
r The current request
p The pool to allocate correct cmd/argv elements within.
process_cgi Set true if processing r->filename and r->args as a CGI invocation, otherwise false
type Set to APR_SHELLCMD or APR_PROGRAM on entry, may be changed to invoke the program with alternate semantics.
detach Should the child start in detached state? Default is no.
Remarks:
This callback may be registered by the os-specific module to correct the command and arguments for apr_proc_create invocation on a given os. mod_cgi will call the function if registered.