Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
module_struct Struct Reference

#include <http_config.h>

Collaboration diagram for module_struct:

Data Fields

int version
 
int minor_version
 
int module_index
 
const char * name
 
voiddynamic_load_handle
 
struct module_structnext
 
unsigned long magic
 
void(* rewrite_args )(process_rec *process)
 
void *(* create_dir_config )(apr_pool_t *p, char *dir)
 
void *(* merge_dir_config )(apr_pool_t *p, void *base_conf, void *new_conf)
 
void *(* create_server_config )(apr_pool_t *p, server_rec *s)
 
void *(* merge_server_config )(apr_pool_t *p, void *base_conf, void *new_conf)
 
const command_reccmds
 
void(* register_hooks )(apr_pool_t *p)
 
int flags
 

Field Documentation

const command_rec* module_struct::cmds

A command_rec table that describes all of the directives this module defines.

void*(* module_struct::create_dir_config)(apr_pool_t *p, char *dir)

Function to allow all modules to create per directory configuration structures.

Parameters
pThe pool to use for all allocations.
dirThe directory currently being processed.
Returns
The per-directory structure created
void*(* module_struct::create_server_config)(apr_pool_t *p, server_rec *s)

Function to allow all modules to create per server configuration structures.

Parameters
pThe pool to use for all allocations.
sThe server currently being processed.
Returns
The per-server structure created
void* module_struct::dynamic_load_handle

The handle for the DSO. Internal use only

int module_struct::flags

A bitmask of AP_MODULE_FLAG_*

unsigned long module_struct::magic

Magic Cookie to identify a module structure; It's mainly important for the DSO facility (see also mod_so).

void*(* module_struct::merge_dir_config)(apr_pool_t *p, void *base_conf, void *new_conf)

Function to allow all modules to merge the per directory configuration structures for two directories.

Parameters
pThe pool to use for all allocations.
base_confThe directory structure created for the parent directory.
new_confThe directory structure currently being processed.
Returns
The new per-directory structure created
void*(* module_struct::merge_server_config)(apr_pool_t *p, void *base_conf, void *new_conf)

Function to allow all modules to merge the per server configuration structures for two servers.

Parameters
pThe pool to use for all allocations.
base_confThe directory structure created for the parent directory.
new_confThe directory structure currently being processed.
Returns
The new per-directory structure created
int module_struct::minor_version

API minor version. Provides API feature milestones. Not checked during module init

int module_struct::module_index

Index to this modules structures in config vectors.

const char* module_struct::name

The name of the module's C file

module_struct * module_struct::next

A pointer to the next module in the list

void(* module_struct::register_hooks)(apr_pool_t *p)

A hook to allow modules to hook other points in the request processing. In this function, modules should call the ap_hook_*() functions to register an interest in a specific step in processing the current request.

Parameters
pthe pool to use for all allocations
void(* module_struct::rewrite_args)(process_rec *process)

Function to allow MPMs to re-write command line arguments. This hook is only available to MPMs.

Parameters
Theprocess that the server is running in.
int module_struct::version

API version, not module version; check that module is compatible with this version of the server.


The documentation for this struct was generated from the following file: