00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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
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