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

apr_rmm.h

Go to the documentation of this file.
00001 /* Copyright 2000-2005 The Apache Software Foundation or its licensors, as
00002  * applicable.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
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 /* __cplusplus */
00038 
00040 typedef struct apr_rmm_t apr_rmm_t;
00041 
00043 typedef apr_size_t   apr_rmm_off_t;
00044 
00055 APU_DECLARE(apr_status_t) apr_rmm_init(apr_rmm_t **rmm, apr_anylock_t *lock,
00056                                        void* membuf, apr_size_t memsize, 
00057                                        apr_pool_t *cont);
00058 
00063 APU_DECLARE(apr_status_t) apr_rmm_destroy(apr_rmm_t *rmm);
00064 
00072 APU_DECLARE(apr_status_t) apr_rmm_attach(apr_rmm_t **rmm, apr_anylock_t *lock,
00073                                          void* membuf, apr_pool_t *cont);
00074 
00079 APU_DECLARE(apr_status_t) apr_rmm_detach(apr_rmm_t *rmm);
00080 
00086 APU_DECLARE(apr_rmm_off_t) apr_rmm_malloc(apr_rmm_t *rmm, apr_size_t reqsize);
00087 
00094 APU_DECLARE(apr_rmm_off_t) apr_rmm_realloc(apr_rmm_t *rmm, void *entity, apr_size_t reqsize);
00095 
00101 APU_DECLARE(apr_rmm_off_t) apr_rmm_calloc(apr_rmm_t *rmm, apr_size_t reqsize);
00102 
00108 APU_DECLARE(apr_status_t) apr_rmm_free(apr_rmm_t *rmm, apr_rmm_off_t entity);
00109 
00116 APU_DECLARE(void *) apr_rmm_addr_get(apr_rmm_t *rmm, apr_rmm_off_t entity);
00117 
00123 APU_DECLARE(apr_rmm_off_t) apr_rmm_offset_get(apr_rmm_t *rmm, void* entity);
00124 
00129 APU_DECLARE(apr_size_t) apr_rmm_overhead_get(int n);
00130 
00131 #ifdef __cplusplus
00132 }
00133 #endif
00135 #endif  /* ! APR_RMM_H */
00136 

Generated on Fri Mar 4 05:10:30 2005 for Apache Portable Runtime Utility Library by  doxygen 1.4.1