Main Page | Modules | Namespace List | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

http_config.h File Reference

#include "apr_hooks.h"
#include "util_cfgtree.h"

Go to the source code of this file.

Classes

struct  command_struct
struct  ap_configfile_t
struct  cmd_parms_struct
struct  module_struct
#define AP_NO_ARGS   func
#define AP_RAW_ARGS   func
#define AP_TAKE_ARGV   func
#define AP_TAKE1   func
#define AP_TAKE2   func
#define AP_TAKE3   func
#define AP_FLAG   func
#define AP_INIT_NO_ARGS(directive, func, mconfig, where, help)   { directive, func, mconfig, where, RAW_ARGS, help }
#define AP_INIT_RAW_ARGS(directive, func, mconfig, where, help)   { directive, func, mconfig, where, RAW_ARGS, help }
#define AP_INIT_TAKE_ARGV(directive, func, mconfig, where, help)   { directive, func, mconfig, where, TAKE_ARGV, help }
#define AP_INIT_TAKE1(directive, func, mconfig, where, help)   { directive, func, mconfig, where, TAKE1, help }
#define AP_INIT_ITERATE(directive, func, mconfig, where, help)   { directive, func, mconfig, where, ITERATE, help }
#define AP_INIT_TAKE2(directive, func, mconfig, where, help)   { directive, func, mconfig, where, TAKE2, help }
#define AP_INIT_TAKE12(directive, func, mconfig, where, help)   { directive, func, mconfig, where, TAKE12, help }
#define AP_INIT_ITERATE2(directive, func, mconfig, where, help)   { directive, func, mconfig, where, ITERATE2, help }
#define AP_INIT_TAKE13(directive, func, mconfig, where, help)   { directive, func, mconfig, where, TAKE13, help }
#define AP_INIT_TAKE23(directive, func, mconfig, where, help)   { directive, func, mconfig, where, TAKE23, help }
#define AP_INIT_TAKE123(directive, func, mconfig, where, help)   { directive, func, mconfig, where, TAKE123, help }
#define AP_INIT_TAKE3(directive, func, mconfig, where, help)   { directive, func, mconfig, where, TAKE3, help }
#define AP_INIT_FLAG(directive, func, mconfig, where, help)   { directive, func, mconfig, where, FLAG, help }
#define OR_NONE   0
#define OR_LIMIT   1
#define OR_OPTIONS   2
#define OR_FILEINFO   4
#define OR_AUTHCFG   8
#define OR_INDEXES   16
#define OR_UNSET   32
#define ACCESS_CONF   64
#define RSRC_CONF   128
#define EXEC_ON_READ   256
#define OR_ALL   (OR_LIMIT|OR_OPTIONS|OR_FILEINFO|OR_AUTHCFG|OR_INDEXES)
typedef cmd_parms_struct cmd_parms
typedef const char *(* cmd_func )()
typedef command_struct command_rec
enum  cmd_how {
  RAW_ARGS, TAKE1, TAKE2, ITERATE,
  ITERATE2, FLAG, NO_ARGS, TAKE12,
  TAKE3, TAKE23, TAKE123, TAKE13,
  TAKE_ARGV
}
const module void * val
const char * method
apr_pool_t apr_pool_t apr_pool_t
*ptemp apr_pool_t apr_pool_t
apr_pool_t server_rec *s apr_pool_t
server_rec *s request_rec
r
apr_pool_t const char * name

Defines

#define DECLINE_CMD   "\a\b"
#define STANDARD_MODULE_STUFF   this_module_needs_to_be_ported_to_apache_2_0
#define STANDARD20_MODULE_STUFF
#define MPM20_MODULE_STUFF
#define ap_get_module_config(v, m)   (((void **)(v))[(m)->module_index])
#define ap_set_module_config(v, m, val)   ((((void **)(v))[(m)->module_index]) = (val))
#define NOT_IN_VIRTUALHOST   0x01
#define NOT_IN_LIMIT   0x02
#define NOT_IN_DIRECTORY   0x04
#define NOT_IN_LOCATION   0x08
#define NOT_IN_FILES   0x10
#define NOT_IN_DIR_LOC_FILE   (NOT_IN_DIRECTORY|NOT_IN_LOCATION|NOT_IN_FILES)
#define GLOBAL_ONLY   (NOT_IN_VIRTUALHOST|NOT_IN_LIMIT|NOT_IN_DIR_LOC_FILE)

Typedefs

typedef ap_configfile_t ap_configfile_t
typedef module_struct module
typedef ap_conf_vector_t ap_conf_vector_t

Functions

 AP_DECLARE (void *) ap_get_module_config(const ap_conf_vector_t *cv
 AP_DECLARE_NONSTD (const char *) ap_set_string_slot(cmd_parms *cmd
 AP_DECLARE_HOOK (int, header_parser,(request_rec *r)) AP_DECLARE_HOOK(int

Variables

const modulem
void * struct_ptr
void const char * arg
const char * fname
apr_pool_tp
const char * descr
const char void * param
const char void int(* getc_func )(void *)
const char void int(*) void *(* gets_func )(void *buf, size_t bufsiz, void *param)
const char void int(*) void
*(*) int(* 
close_func )(void *param))
size_t bufsize
size_t ap_configfile_tcfp
char * directive
apr_pool_ttemp_pool
apr_pool_t cmd_parmsparms
apr_pool_t cmd_parms ap_directive_t ** current
apr_pool_t cmd_parms ap_directive_t
ap_directive_t ** 
curr_parent
apr_pool_t cmd_parms ap_directive_t
ap_directive_t char * 
orig_directive
apr_pool_tconf_pool
apr_pool_t apr_pool_t ap_directive_t ** conftree
cmd_parms ap_conf_vector_tsection_vector
unsigned forbidden
 pre_config
apr_pool_tpconf
apr_pool_t apr_pool_tplog
apr_pool_t apr_pool_t apr_pool_t
*ptemp 
post_config
apr_pool_t apr_pool_t apr_pool_t
*ptemp apr_pool_t apr_pool_t
apr_pool_t
ptemp
apr_pool_t apr_pool_t apr_pool_t
*ptemp apr_pool_t apr_pool_t
apr_pool_t server_rec *s 
child_init
apr_pool_t apr_pool_t apr_pool_t
*ptemp apr_pool_t apr_pool_t
apr_pool_t server_rec *s apr_pool_t
pchild
apr_pool_t apr_pool_t apr_pool_t
*ptemp apr_pool_t apr_pool_t
apr_pool_t server_rec *s apr_pool_t
server_rec *s 
quick_handler


Define Documentation

#define AP_FLAG   func
 

Definition at line 166 of file http_config.h.

#define AP_INIT_FLAG directive,
func,
mconfig,
where,
help   )     { directive, func, mconfig, where, FLAG, help }
 

Definition at line 192 of file http_config.h.

#define AP_INIT_ITERATE directive,
func,
mconfig,
where,
help   )     { directive, func, mconfig, where, ITERATE, help }
 

Definition at line 176 of file http_config.h.

#define AP_INIT_ITERATE2 directive,
func,
mconfig,
where,
help   )     { directive, func, mconfig, where, ITERATE2, help }
 

Definition at line 182 of file http_config.h.

#define AP_INIT_NO_ARGS directive,
func,
mconfig,
where,
help   )     { directive, func, mconfig, where, RAW_ARGS, help }
 

Definition at line 168 of file http_config.h.

#define AP_INIT_RAW_ARGS directive,
func,
mconfig,
where,
help   )     { directive, func, mconfig, where, RAW_ARGS, help }
 

Definition at line 170 of file http_config.h.

#define AP_INIT_TAKE1 directive,
func,
mconfig,
where,
help   )     { directive, func, mconfig, where, TAKE1, help }
 

Definition at line 174 of file http_config.h.

#define AP_INIT_TAKE12 directive,
func,
mconfig,
where,
help   )     { directive, func, mconfig, where, TAKE12, help }
 

Definition at line 180 of file http_config.h.

#define AP_INIT_TAKE123 directive,
func,
mconfig,
where,
help   )     { directive, func, mconfig, where, TAKE123, help }
 

Definition at line 188 of file http_config.h.

#define AP_INIT_TAKE13 directive,
func,
mconfig,
where,
help   )     { directive, func, mconfig, where, TAKE13, help }
 

Definition at line 184 of file http_config.h.

#define AP_INIT_TAKE2 directive,
func,
mconfig,
where,
help   )     { directive, func, mconfig, where, TAKE2, help }
 

Definition at line 178 of file http_config.h.

#define AP_INIT_TAKE23 directive,
func,
mconfig,
where,
help   )     { directive, func, mconfig, where, TAKE23, help }
 

Definition at line 186 of file http_config.h.

#define AP_INIT_TAKE3 directive,
func,
mconfig,
where,
help   )     { directive, func, mconfig, where, TAKE3, help }
 

Definition at line 190 of file http_config.h.

#define AP_INIT_TAKE_ARGV directive,
func,
mconfig,
where,
help   )     { directive, func, mconfig, where, TAKE_ARGV, help }
 

Definition at line 172 of file http_config.h.

#define AP_NO_ARGS   func
 

Definition at line 160 of file http_config.h.

#define AP_RAW_ARGS   func
 

Definition at line 161 of file http_config.h.

#define AP_TAKE1   func
 

Definition at line 163 of file http_config.h.

#define AP_TAKE2   func
 

Definition at line 164 of file http_config.h.

#define AP_TAKE3   func
 

Definition at line 165 of file http_config.h.

#define AP_TAKE_ARGV   func
 

Definition at line 162 of file http_config.h.


Typedef Documentation

typedef const char*(* cmd_func)()
 

Definition at line 158 of file http_config.h.

typedef struct cmd_parms_struct cmd_parms
 

This structure is passed to a command which is being invoked, to carry a large variety of miscellaneous data which is all of use to *somebody*...

Definition at line 72 of file http_config.h.

typedef struct command_struct command_rec
 

The command record structure. Each modules can define a table of these to define the directives it will implement.

Definition at line 201 of file http_config.h.


Enumeration Type Documentation

enum cmd_how
 

How the directives arguments should be parsed.

Remarks:
Note that for all of these except RAW_ARGS, the config routine is passed a freshly allocated string which can be modified or stored or whatever...
Enumerator:
RAW_ARGS  cmd_func parses command line itself
TAKE1  one argument only
TAKE2  two arguments only
ITERATE  one argument, occuring multiple times (e.g., IndexIgnore)
ITERATE2  two arguments, 2nd occurs multiple times (e.g., AddIcon)
FLAG  One of 'On' or 'Off'
NO_ARGS  No args at all, e.g. </directory>
TAKE12  one or two arguments
TAKE3  three arguments only
TAKE23  two or three arguments
TAKE123  one, two or three arguments
TAKE13  one or three arguments
TAKE_ARGV  an argc and argv are passed

Definition at line 48 of file http_config.h.

00048              {
00049     RAW_ARGS,                   
00050     TAKE1,                      
00051     TAKE2,                      
00052     ITERATE,                    
00055     ITERATE2,                   
00058     FLAG,                       
00059     NO_ARGS,                    
00060     TAKE12,                     
00061     TAKE3,                      
00062     TAKE23,                     
00063     TAKE123,                    
00064     TAKE13,                     
00065     TAKE_ARGV                   
00066 };


© sourcejam.com 2005-2008