Loading...
Searching...
No Matches
apr_rmm.h
Go to the documentation of this file.
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef APR_RMM_H
#define APR_RMM_H
#include "apr.h"
#include "apr_pools.h"
#include "apr_errno.h"
#include "apu.h"
#include "apr_anylock.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
typedef struct apr_rmm_t apr_rmm_t;
typedef apr_size_t apr_rmm_off_t;
APU_DECLARE(apr_status_t) apr_rmm_init(apr_rmm_t **rmm, apr_anylock_t *lock,
void *membuf, apr_size_t memsize,
apr_pool_t *cont);
APU_DECLARE(apr_status_t) apr_rmm_destroy(apr_rmm_t *rmm);
APU_DECLARE(apr_status_t) apr_rmm_attach(apr_rmm_t **rmm, apr_anylock_t *lock,
void *membuf, apr_pool_t *cont);
APU_DECLARE(apr_status_t) apr_rmm_detach(apr_rmm_t *rmm);
APU_DECLARE(apr_rmm_off_t) apr_rmm_malloc(apr_rmm_t *rmm, apr_size_t reqsize);
APU_DECLARE(apr_rmm_off_t) apr_rmm_realloc(apr_rmm_t *rmm, void *entity, apr_size_t reqsize);
APU_DECLARE(apr_rmm_off_t) apr_rmm_calloc(apr_rmm_t *rmm, apr_size_t reqsize);
APU_DECLARE(apr_status_t) apr_rmm_free(apr_rmm_t *rmm, apr_rmm_off_t entity);
APU_DECLARE(void *) apr_rmm_addr_get(apr_rmm_t *rmm, apr_rmm_off_t entity);
APU_DECLARE(apr_rmm_off_t) apr_rmm_offset_get(apr_rmm_t *rmm, void *entity);
APU_DECLARE(apr_size_t) apr_rmm_overhead_get(int n);
#ifdef __cplusplus
}
#endif
#endif /* ! APR_RMM_H */
apr_anylock.h
APR-Util transparent any lock flavor wrapper.
apr_rmm_calloc
apr_rmm_off_t apr_rmm_calloc(apr_rmm_t *rmm, apr_size_t reqsize)
apr_rmm_detach
apr_status_t apr_rmm_detach(apr_rmm_t *rmm)
apr_rmm_addr_get
void * apr_rmm_addr_get(apr_rmm_t *rmm, apr_rmm_off_t entity)
apr_rmm_malloc
apr_rmm_off_t apr_rmm_malloc(apr_rmm_t *rmm, apr_size_t reqsize)
apr_rmm_offset_get
apr_rmm_off_t apr_rmm_offset_get(apr_rmm_t *rmm, void *entity)
apr_rmm_init
apr_status_t apr_rmm_init(apr_rmm_t **rmm, apr_anylock_t *lock, void *membuf, apr_size_t memsize, apr_pool_t *cont)
apr_rmm_off_t
apr_size_t apr_rmm_off_t
Definition apr_rmm.h:43
apr_rmm_realloc
apr_rmm_off_t apr_rmm_realloc(apr_rmm_t *rmm, void *entity, apr_size_t reqsize)
apr_rmm_destroy
apr_status_t apr_rmm_destroy(apr_rmm_t *rmm)
apr_rmm_free
apr_status_t apr_rmm_free(apr_rmm_t *rmm, apr_rmm_off_t entity)
apr_rmm_t
struct apr_rmm_t apr_rmm_t
Definition apr_rmm.h:40
apr_rmm_attach
apr_status_t apr_rmm_attach(apr_rmm_t **rmm, apr_anylock_t *lock, void *membuf, apr_pool_t *cont)
apr_rmm_overhead_get
apr_size_t apr_rmm_overhead_get(int n)
apr_anylock_t
Definition apr_anylock.h:29