summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorJim Jagielski <jim@apache.org>2008-12-31 14:40:03 +0100
committerJim Jagielski <jim@apache.org>2008-12-31 14:40:03 +0100
commit028d268899240c36a1911f1b8b88bedfe52e32f2 (patch)
tree2e8c4e70fc6baf357a246ed588c79ee9ef18ca0b /modules
parentUpdate comments (diff)
downloadapache2-028d268899240c36a1911f1b8b88bedfe52e32f2.tar.xz
apache2-028d268899240c36a1911f1b8b88bedfe52e32f2.zip
Modules will also need to know which methods are available
in order to better choose... complete the API insulation. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@730394 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-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