00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
#ifndef APR_RMM_H
00018
#define APR_RMM_H
00019
00029
#include "apr.h"
00030
#include "apr_pools.h"
00031
#include "apr_errno.h"
00032
#include "apu.h"
00033
#include "apr_anylock.h"
00034
00035
#ifdef __cplusplus
00036
extern "C" {
00037
#endif
00038
00040 typedef struct apr_rmm_t apr_rmm_t;
00041
00043 typedef apr_size_t
apr_rmm_off_t;
00044
00056
APU_DECLARE(apr_status_t) apr_rmm_init(apr_rmm_t **rmm,
apr_anylock_t *lock,
00057
void *membuf, apr_size_t memsize,
00058 apr_pool_t *cont);
00059
00064 APU_DECLARE(apr_status_t) apr_rmm_destroy(apr_rmm_t *rmm);
00065
00073 APU_DECLARE(apr_status_t) apr_rmm_attach(apr_rmm_t **rmm,
apr_anylock_t *lock,
00074
void *membuf, apr_pool_t *cont);
00075
00080 APU_DECLARE(apr_status_t) apr_rmm_detach(apr_rmm_t *rmm);
00081
00087 APU_DECLARE(apr_rmm_off_t) apr_rmm_malloc(apr_rmm_t *rmm, apr_size_t reqsize);
00088
00095 APU_DECLARE(apr_rmm_off_t) apr_rmm_realloc(apr_rmm_t *rmm,
void *entity, apr_size_t reqsize);
00096
00102 APU_DECLARE(apr_rmm_off_t) apr_rmm_calloc(apr_rmm_t *rmm, apr_size_t reqsize);
00103
00109 APU_DECLARE(apr_status_t) apr_rmm_free(apr_rmm_t *rmm, apr_rmm_off_t entity);
00110
00117 APU_DECLARE(
void *) apr_rmm_addr_get(apr_rmm_t *rmm, apr_rmm_off_t entity);
00118
00124 APU_DECLARE(apr_rmm_off_t) apr_rmm_offset_get(apr_rmm_t *rmm,
void *entity);
00125
00130 APU_DECLARE(apr_size_t) apr_rmm_overhead_get(
int n);
00131
00132 #ifdef __cplusplus
00133 }
00134 #endif
00136 #endif
00137