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-2004 The Apache Software Foundation
00002  *
00003  * Licensed under the Apache License, Version 2.0 (the "License");
00004  * you may not use this file except in compliance with the License.
00005  * You may obtain a copy of the License at
00006  *
00007  *     http://www.apache.org/licenses/LICENSE-2.0
00008  *
00009  * Unless required by applicable law or agreed to in writing, software
00010  * distributed under the License is distributed on an "AS IS" BASIS,
00011  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00012  * See the License for the specific language governing permissions and
00013  * limitations under the License.
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 /* __cplusplus */
00037 
00039 typedef struct apr_rmm_t apr_rmm_t;
00040 
00042 typedef apr_size_t   apr_rmm_off_t;
00043 
00054 APU_DECLARE(apr_status_t) apr_rmm_init(apr_rmm_t **rmm, apr_anylock_t *lock,
00055                                        void* membuf, apr_size_t memsize, 
00056                                        apr_pool_t *cont);
00057 
00062 APU_DECLARE(apr_status_t) apr_rmm_destroy(apr_rmm_t *rmm);
00063 
00071 APU_DECLARE(apr_status_t) apr_rmm_attach(apr_rmm_t **rmm, apr_anylock_t *lock,
00072                                          void* membuf, apr_pool_t *cont);
00073 
00078 APU_DECLARE(apr_status_t) apr_rmm_detach(apr_rmm_t *rmm);
00079 
00085 APU_DECLARE(apr_rmm_off_t) apr_rmm_malloc(apr_rmm_t *rmm, apr_size_t reqsize);
00086 
00093 APU_DECLARE(apr_rmm_off_t) apr_rmm_realloc(apr_rmm_t *rmm, void *entity, apr_size_t reqsize);
00094 
00100 APU_DECLARE(apr_rmm_off_t) apr_rmm_calloc(apr_rmm_t *rmm, apr_size_t reqsize);
00101 
00107 APU_DECLARE(apr_status_t) apr_rmm_free(apr_rmm_t *rmm, apr_rmm_off_t entity);
00108 
00115 APU_DECLARE(void *) apr_rmm_addr_get(apr_rmm_t *rmm, apr_rmm_off_t entity);
00116 
00122 APU_DECLARE(apr_rmm_off_t) apr_rmm_offset_get(apr_rmm_t *rmm, void* entity);
00123 
00128 APU_DECLARE(apr_size_t) apr_rmm_overhead_get(int n);
00129 
00130 #ifdef __cplusplus
00131 }
00132 #endif
00134 #endif  /* ! APR_RMM_H */
00135 

Generated on Thu Sep 8 12:20:49 2005 for Apache Portable Runtime Utility Library by  doxygen 1.4.4