]> granicus.if.org Git - apache/commitdiff
Modules will also need to know which methods are available
authorJim Jagielski <jim@apache.org>
Wed, 31 Dec 2008 13:40:03 +0000 (13:40 +0000)
committerJim Jagielski <jim@apache.org>
Wed, 31 Dec 2008 13:40:03 +0000 (13:40 +0000)
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

modules/mem/mod_slotmem.c
modules/mem/mod_slotmem.h

index b29864544d19537e948370033bf388dd631fd5a2..7810e7e884e69fd58f8a3f5a65d7d4be99a4e81c 100644 (file)
 
 #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"));
index a9a4a356effb1e13bd573c55ebcc4c50cdebd9be..5251fe154159bc04e8a662c984aeb01175945952 100644 (file)
@@ -142,6 +142,12 @@ typedef struct ap_slotmem_storage_method ap_slotmem_storage_method;
  *  memory providers to be provided and having a single
  *  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