From: Jim Jagielski Date: Wed, 31 Dec 2008 13:40:03 +0000 (+0000) Subject: Modules will also need to know which methods are available X-Git-Tag: 2.3.1~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=028d268899240c36a1911f1b8b88bedfe52e32f2;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/modules/mem/mod_slotmem.c b/modules/mem/mod_slotmem.c index b29864544d1..7810e7e884e 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 a9a4a356eff..5251fe15415 100644 --- a/modules/mem/mod_slotmem.h +++ b/modules/mem/mod_slotmem.h @@ -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