Apache HTTPD
Classes | Typedefs | Functions | Variables
mod_so.c File Reference
module so_module
#include "apr.h"
#include "apr_dso.h"
#include "apr_strings.h"
#include "apr_errno.h"
#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_log.h"
#include "http_core.h"
#include "mod_so.h"

Go to the source code of this file.

Classes

struct  so_server_conf
 

Typedefs

typedef struct so_server_conf so_server_conf
 

Functions

static void * so_sconf_create (apr_pool_t *p, server_rec *s)
 
static apr_status_t unload_module (void *data)
 
static const chardso_load (cmd_parms *cmd, apr_dso_handle_t **modhandlep, const char *filename, const char **used_filename)
 
static const charload_module (cmd_parms *cmd, void *dummy, const char *modname, const char *filename)
 
static const charload_file (cmd_parms *cmd, void *dummy, const char *filename)
 
 for (i=0;i< sconf->loaded_modules->nelts;i++)
 
static void dump_loaded_modules (apr_pool_t *p, server_rec *s)
 
static void register_hooks (apr_pool_t *p)
 

Variables

ap_module_symbol_tmodi
 
ap_module_symbol_tmodie = (ap_module_symbol_t *)sconf->loaded_modules->elts
 
int i
 
 sconf
 
return NULL
 
static const command_rec so_cmds []
 
static int *const aplog_module_index = &( so_module.module_index)
 

Typedef Documentation

◆ so_server_conf

Function Documentation

◆ dso_load()

static const char * dso_load ( cmd_parms cmd,
apr_dso_handle_t **  modhandlep,
const char filename,
const char **  used_filename 
)
static

Definition at line 146 of file mod_so.c.

◆ dump_loaded_modules()

static void dump_loaded_modules ( apr_pool_t p,
server_rec s 
)
static

Definition at line 362 of file mod_so.c.

◆ for()

for ( i  = 0; i < sconf->loaded_modules->neltsi++)

Definition at line 353 of file mod_so.c.

◆ load_file()

static const char * load_file ( cmd_parms cmd,
void *  dummy,
const char filename 
)
static

Definition at line 327 of file mod_so.c.

◆ load_module()

static const char * load_module ( cmd_parms cmd,
void *  dummy,
const char modname,
const char filename 
)
static

Definition at line 182 of file mod_so.c.

◆ register_hooks()

static void register_hooks ( apr_pool_t p)
static

Definition at line 418 of file mod_so.c.

◆ so_sconf_create()

static void * so_sconf_create ( apr_pool_t p,
server_rec s 
)
static

Definition at line 111 of file mod_so.c.

◆ unload_module()

static apr_status_t unload_module ( void *  data)
static

Definition at line 129 of file mod_so.c.

Variable Documentation

◆ aplog_module_index

int* const aplog_module_index = &( so_module.module_index)
static

Definition at line 434 of file mod_so.c.

◆ i

int i

Definition at line 347 of file mod_so.c.

◆ modi

Definition at line 345 of file mod_so.c.

◆ modie

modie = (ap_module_symbol_t *)sconf->loaded_modules->elts

Definition at line 346 of file mod_so.c.

◆ NULL

return NULL

Definition at line 359 of file mod_so.c.

◆ sconf

sconf
Initial value:
(((void **)( s->module_config ))[( &so_module )->module_index])
const char * s
Definition apr_strings.h:95

Definition at line 349 of file mod_so.c.

◆ so_cmds

const command_rec so_cmds[]
static
Initial value:
= {
{ "LoadModule" , load_module , NULL , 128 | 256 , TAKE2, "a module name and the name of a shared object file to load it from" },
{ "LoadFile" , load_file , NULL , 128 | 256 , ITERATE, "shared object file or library to load into the server at runtime" },
{ NULL }
}
@ TAKE2
Definition http_config.h:52
@ ITERATE
Definition http_config.h:53
static const char * load_file(cmd_parms *cmd, void *dummy, const char *filename)
Definition mod_so.c:327
return NULL
Definition mod_so.c:359
static const char * load_module(cmd_parms *cmd, void *dummy, const char *modname, const char *filename)
Definition mod_so.c:182

Definition at line 426 of file mod_so.c.