GME  13
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 
00088 APR_DECLARE(apr_status_t) apr_shm_remove(const char *filename,
00089                                          apr_pool_t *pool);
00090 
00095 APR_DECLARE(apr_status_t) apr_shm_destroy(apr_shm_t *m);
00096 
00106 APR_DECLARE(apr_status_t) apr_shm_attach(apr_shm_t **m,
00107                                          const char *filename,
00108                                          apr_pool_t *pool);
00109 
00115 APR_DECLARE(apr_status_t) apr_shm_detach(apr_shm_t *m);
00116 
00126 APR_DECLARE(void *) apr_shm_baseaddr_get(const apr_shm_t *m);
00127 
00133 APR_DECLARE(apr_size_t) apr_shm_size_get(const apr_shm_t *m);
00134 
00138 APR_POOL_DECLARE_ACCESSOR(shm);
00139 
00142 #ifdef __cplusplus
00143 }
00144 #endif
00145 
00146 #endif  /* APR_SHM_T */