Main Page | Modules | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

apr_hooks.c File Reference

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "apr_pools.h"
#include "apr_tables.h"
#include "apr.h"
#include "apr_hooks.h"
#include "apr_hash.h"
#include "apr_optional_hooks.h"
#include "apr_optional.h"
#include "apr_want.h"

Include dependency graph for apr_hooks.c:

Go to the source code of this file.

Defines

#define APR_WANT_MEMFUNC
#define APR_WANT_STRFUNC

Typedefs

typedef tsort_ TSort

Functions

static int crude_order (const void *a_, const void *b_)
static TSortprepare (apr_pool_t *p, TSortData *pItems, int nItems)
static TSorttsort (TSort *pData, int nItems)
static apr_array_header_tsort_hook (apr_array_header_t *pHooks, const char *szName)
 APU_DECLARE (void)
 APR_DECLARE_EXTERNAL_HOOK (apr, APU, void, _optional,(void))
 APU_DECLARE (apr_opt_fn_t *)
 APU_DECLARE_NONSTD (void)

Variables

APU_DECLARE_DATA apr_pool_tapr_hook_global_pool = NULL
APU_DECLARE_DATA int apr_hook_debug_enabled = 0
APU_DECLARE_DATA const char * apr_hook_debug_current = NULL
APU_DECLARE_DATA apr_pool_tapr_global_hook_pool = NULL
APU_DECLARE_DATA int apr_debug_module_hooks = 0
APU_DECLARE_DATA const char * apr_current_hooking_module = NULL
static apr_array_header_ts_aHooksToSort
static apr_hash_ts_phOptionalHooks
static apr_hash_ts_phOptionalFunctions


Define Documentation

#define APR_WANT_MEMFUNC
 

Definition at line 28 of file apr_hooks.c.

#define APR_WANT_STRFUNC
 

Definition at line 29 of file apr_hooks.c.


Typedef Documentation

typedef struct tsort_ TSort
 


Function Documentation

APR_DECLARE_EXTERNAL_HOOK apr  ,
APU  ,
void  ,
_optional  ,
(void) 
 

Definition at line 322 of file apr_hooks.c.

References NULL.

static int crude_order const void *  a_,
const void *  b_
[static]
 

Definition at line 75 of file apr_hooks.c.

References b, and TSortData::nOrder.

Referenced by prepare().

static TSort* prepare apr_pool_t p,
TSortData pItems,
int  nItems
[static]
 

Definition at line 83 of file apr_hooks.c.

References apr_pcalloc, crude_order(), n, NULL, tsort_::pData, and tsort_::ppPredecessors.

Referenced by sort_hook().

Here is the call graph for this function:

static apr_array_header_t* sort_hook apr_array_header_t pHooks,
const char *  szName
[static]
 

Definition at line 187 of file apr_hooks.c.

References apr_hook_debug_enabled, apr_hook_global_pool, apr_pool_create, apr_array_header_t::elts, n, nelts, apr_array_header_t::nelts, p, tsort_::pData, tsort_::pNext, prepare(), and tsort().

Here is the call graph for this function:

static TSort* tsort TSort pData,
int  nItems
[static]
 

Definition at line 139 of file apr_hooks.c.

References n, tsort_::nPredecessors, NULL, tsort_::pNext, and tsort_::ppPredecessors.

Referenced by sort_hook().


Variable Documentation

apr_array_header_t* s_aHooksToSort [static]
 

Definition at line 215 of file apr_hooks.c.

apr_hash_t* s_phOptionalFunctions [static]
 

Definition at line 260 of file apr_hooks.c.

apr_hash_t* s_phOptionalHooks [static]
 

Definition at line 259 of file apr_hooks.c.