mod_slotmem_plain.c revision ecbb6919215df02bdb5dab48535282c57fc7a2fb
#include "ap_slotmem.h"
struct ap_slotmem_instance_t {
static apr_status_t slotmem_do(ap_slotmem_instance_t *mem, ap_slotmem_callback_fn_t *func, void *data, apr_pool_t *pool)
void *ptr;
if (!mem)
return APR_ENOSHMAVAIL;
return APR_SUCCESS;
static apr_status_t slotmem_create(ap_slotmem_instance_t **new, const char *name, apr_size_t item_size, unsigned int item_num, ap_slotmem_type_t type, apr_pool_t *pool)
const char *fname;
if (name) {
while (next) {
return APR_SUCCESS;
return APR_ENOSHMAVAIL;
return APR_SUCCESS;
static apr_status_t slotmem_attach(ap_slotmem_instance_t **new, const char *name, apr_size_t *item_size, unsigned int *item_num, apr_pool_t *pool)
const char *fname;
if (name) {
return APR_ENOSHMAVAIL;
while (next) {
return APR_SUCCESS;
return APR_ENOSHMAVAIL;
void *ptr;
if (!score)
return APR_ENOSHMAVAIL;
return APR_ENOSHMAVAIL;
if (!ptr)
return APR_ENOSHMAVAIL;
return APR_SUCCESS;
static apr_status_t slotmem_get(ap_slotmem_instance_t *slot, unsigned int id, unsigned char *dest, apr_size_t dest_len)
void *ptr;
return ret;
return APR_SUCCESS;
static apr_status_t slotmem_put(ap_slotmem_instance_t *slot, unsigned int id, unsigned char *src, apr_size_t src_len)
void *ptr;
return ret;
return APR_SUCCESS;
gpool = p;
return OK;
/* XXX: static const char * const prePos[] = { "mod_slotmem.c", NULL }; */