00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00026 #ifndef _MOD_CGI_H
00027 #define _MOD_CGI_H 1
00028
00029 #include "mod_include.h"
00030
00031 typedef enum {RUN_AS_SSI, RUN_AS_CGI} prog_types;
00032
00033 typedef struct {
00034 apr_int32_t in_pipe;
00035 apr_int32_t out_pipe;
00036 apr_int32_t err_pipe;
00037 int process_cgi;
00038 apr_cmdtype_e cmd_type;
00039 apr_int32_t detached;
00040 prog_types prog_type;
00041 apr_bucket_brigade **bb;
00042 include_ctx_t *ctx;
00043 ap_filter_t *next;
00044 apr_int32_t addrspace;
00045 } cgi_exec_info_t;
00046
00063 APR_DECLARE_OPTIONAL_FN(apr_status_t, ap_cgi_build_command,
00064 (const char **cmd, const char ***argv,
00065 request_rec *r, apr_pool_t *p,
00066 cgi_exec_info_t *e_info));
00067
00068 #endif
00069