apr_shm.h

Go to the documentation of this file.
00001 /* Licensed to the Apache Software Foundation (ASF) under one or more
00002  * contributor license agreements.  See the NOTICE file distributed with
00003  * this work for additional information regarding copyright ownership.
00004  * The ASF licenses this file to You under the Apache License, Version 2.0
00005  * (the "License"); you may not use this file except in compliance with
00006  * the License.  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_SHM_H
00018 #define APR_SHM_H
00019 
00025 #include "apr.h"
00026 #include "apr_pools.h"
00027 #include "apr_errno.h"
00028 
00029 #ifdef __cplusplus
00030 extern "C" {
00031 #endif /* __cplusplus */
00032 
00043 typedef struct apr_shm_t apr_shm_t;
00044 
00068 APR_DECLARE(apr_status_t) apr_shm_create(apr_shm_t **m,
00069                                          apr_size_t reqsize,
00070                                          const char *filename,
00071                                          apr_pool_t *pool);
00072 
00077 APR_DECLARE(apr_status_t) apr_shm_destroy(apr_shm_t *m);
00078 
00088 APR_DECLARE(apr_status_t) apr_shm_attach(apr_shm_t **m,
00089                                          const char *filename,
00090                                          apr_pool_t *pool);
00091 
00097 APR_DECLARE(apr_status_t) apr_shm_detach(apr_shm_t *m);
00098 
00107 APR_DECLARE(void *) apr_shm_baseaddr_get(const apr_shm_t *m);
00108 
00114 APR_DECLARE(apr_size_t) apr_shm_size_get(const apr_shm_t *m);
00115 
00119 APR_POOL_DECLARE_ACCESSOR(shm);
00120 
00123 #ifdef __cplusplus
00124 }
00125 #endif
00126 
00127 #endif  /* APR_SHM_T */

Generated on Mon Nov 26 11:47:26 2007 for Apache Portable Runtime by  doxygen 1.5.2