Apache2
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
 
void * dynamic_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

◆ cmds

const command_rec* module_struct::cmds

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

◆ create_dir_config

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

◆ create_server_config

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

◆ dynamic_load_handle

void* module_struct::dynamic_load_handle

The handle for the DSO. Internal use only

◆ flags

int module_struct::flags

A bitmask of AP_MODULE_FLAG_*

◆ magic

unsigned long module_struct::magic

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

◆ merge_dir_config

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

◆ merge_server_config

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

◆ minor_version

int module_struct::minor_version

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

◆ module_index

int module_struct::module_index

Index to this modules structures in config vectors.

◆ name

const char* module_struct::name

The name of the module's C file

◆ next

module_struct * module_struct::next

A pointer to the next module in the list

◆ register_hooks

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

◆ rewrite_args

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.

◆ version

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: