00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
#ifndef APR_RMM_H
00017
#define APR_RMM_H
00018
00028
#include "apr.h"
00029
#include "apr_pools.h"
00030
#include "apr_errno.h"
00031
#include "apu.h"
00032
#include "apr_anylock.h"
00033
00034
#ifdef __cplusplus
00035
extern "C" {
00036
#endif
00037
00039 typedef struct apr_rmm_t apr_rmm_t;
00040
00042 typedef apr_size_t
apr_rmm_off_t;
00043
00052
APU_DECLARE(apr_status_t) apr_rmm_init(apr_rmm_t **rmm,
apr_anylock_t *lock,
00053
void* membuf, apr_size_t memsize,
00054 apr_pool_t *cont);
00055
00060 APU_DECLARE(apr_status_t) apr_rmm_destroy(apr_rmm_t *rmm);
00061
00069 APU_DECLARE(apr_status_t) apr_rmm_attach(apr_rmm_t **rmm,
apr_anylock_t *lock,
00070
void* membuf, apr_pool_t *cont);
00071
00076 APU_DECLARE(apr_status_t) apr_rmm_detach(apr_rmm_t *rmm);
00077
00083 APU_DECLARE(apr_rmm_off_t) apr_rmm_malloc(apr_rmm_t *rmm, apr_size_t reqsize);
00084
00091 APU_DECLARE(apr_rmm_off_t) apr_rmm_realloc(apr_rmm_t *rmm,
void *entity, apr_size_t reqsize);
00092
00098 APU_DECLARE(apr_rmm_off_t) apr_rmm_calloc(apr_rmm_t *rmm, apr_size_t reqsize);
00099
00105 APU_DECLARE(apr_status_t) apr_rmm_free(apr_rmm_t *rmm, apr_rmm_off_t entity);
00106
00112 APU_DECLARE(
void *) apr_rmm_addr_get(apr_rmm_t *rmm, apr_rmm_off_t entity);
00113
00119 APU_DECLARE(apr_rmm_off_t) apr_rmm_offset_get(apr_rmm_t *rmm,
void* entity);
00120
00125 APU_DECLARE(apr_size_t) apr_rmm_overhead_get(
int n);
00126
00127 #ifdef __cplusplus
00128 }
00129 #endif
00131 #endif
00132