summaryrefslogtreecommitdiff
path: root/include/ap_slotmem.h
diff options
context:
space:
mode:
authorJim Jagielski <jim@apache.org>2009-05-13 19:44:56 +0000
committerJim Jagielski <jim@apache.org>2009-05-13 19:44:56 +0000
commit53ad28033909dd1652da7530f37375371b915361 (patch)
tree912bbf0534694198e2f12e6b74b76ce103898398 /include/ap_slotmem.h
parentd0f5105e0d307c6b3d519bface75725c70c15ce7 (diff)
downloadhttpd-53ad28033909dd1652da7530f37375371b915361.tar.gz
add API back from r774454
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@774500 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/ap_slotmem.h')
-rw-r--r--include/ap_slotmem.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/ap_slotmem.h b/include/ap_slotmem.h
index aac7ea046f..e59ef72096 100644
--- a/include/ap_slotmem.h
+++ b/include/ap_slotmem.h
@@ -101,6 +101,14 @@ struct ap_slotmem_storage_method {
*/
apr_status_t (* slotmem_attach)(ap_slotmem_t **new, const char *name, apr_size_t *item_size, unsigned int *item_num, apr_pool_t *pool);
/**
+ * get the memory ptr associated with this worker slot.
+ * @param s ap_slotmem_t to use.
+ * @param item_id item to return for 0 to item_num
+ * @param mem address to store the pointer to the slot
+ * @return APR_SUCCESS if all went well
+ */
+ apr_status_t (* slotmem_mem)(ap_slotmem_t *s, unsigned int item_id, void**mem);
+ /**
* retrieve the memory associated with this worker slot.
* @param s ap_slotmem_t to use.
* @param item_id item to return for 0 to item_num
@@ -190,6 +198,15 @@ AP_DECLARE(apr_status_t) ap_slotmem_create(ap_slotmem_storage_method *sm, ap_slo
*/
AP_DECLARE(apr_status_t) ap_slotmem_attach(ap_slotmem_storage_method *sm, ap_slotmem_t **new, const char *name, apr_size_t *item_size, unsigned int *item_num, apr_pool_t *pool);
/**
+ * get the memory associated with this worker slot.
+ * @param sm ap_slotmem_storage_method provider obtained
+ * @param s ap_slotmem_t to use.
+ * @param item_id item to return for 0 to item_num
+ * @param mem address to store the pointer to the slot
+ * @return APR_SUCCESS if all went well
+ */
+AP_DECLARE(apr_status_t) ap_slotmem_mem(ap_slotmem_storage_method *sm, ap_slotmem_t *s, unsigned int item_id, void**mem);
+/**
* retrieve the memory associated with this worker slot.
* @param sm ap_slotmem_storage_method provider obtained
* @param s ap_slotmem_t to use.