summaryrefslogtreecommitdiffstats
path: root/modules/mem
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/mem/mod_slotmem.c5
-rw-r--r--modules/mem/mod_slotmem.h6
2 files changed, 11 insertions, 0 deletions
diff --git a/modules/mem/mod_slotmem.c b/modules/mem/mod_slotmem.c
index b29864544d..7810e7e884 100644
--- a/modules/mem/mod_slotmem.c
+++ b/modules/mem/mod_slotmem.c
@@ -21,6 +21,11 @@
#include "mod_slotmem.h"
+AP_DECLARE(apr_array_header_t *) ap_slotmem_methods(apr_pool_t *pool)
+{
+ return (ap_list_provider_names(pool, SLOTMEM_STORAGE, "0"));
+}
+
AP_DECLARE(ap_slotmem_storage_method *) ap_slotmem_method(const char *provider)
{
return (ap_lookup_provider(SLOTMEM_STORAGE, provider, "0"));
diff --git a/modules/mem/mod_slotmem.h b/modules/mem/mod_slotmem.h
index a9a4a356ef..5251fe1541 100644
--- a/modules/mem/mod_slotmem.h
+++ b/modules/mem/mod_slotmem.h
@@ -143,6 +143,12 @@ typedef struct ap_slotmem_storage_method ap_slotmem_storage_method;
* simple interface for all
*/
/**
+ * obtain the array of provider methods desired
+ * @param pool is the pool to use
+ * @return pointer to array of provider names available
+ */
+AP_DECLARE(apr_array_header_t *) ap_slotmem_methods(apr_pool_t *pool);
+/**
* obtain the provider method desired
* @param provider is name of the provider to use
* @return pointer to provider or NULL