httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r730394 - in /httpd/httpd/trunk/modules/mem: mod_slotmem.c mod_slotmem.h
Date Wed, 31 Dec 2008 13:40:03 GMT
Author: jim
Date: Wed Dec 31 05:40:03 2008
New Revision: 730394

URL: http://svn.apache.org/viewvc?rev=730394&view=rev
Log:
Modules will also need to know which methods are available
in order to better choose... complete the API insulation.

Modified:
    httpd/httpd/trunk/modules/mem/mod_slotmem.c
    httpd/httpd/trunk/modules/mem/mod_slotmem.h

Modified: httpd/httpd/trunk/modules/mem/mod_slotmem.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/mem/mod_slotmem.c?rev=730394&r1=730393&r2=730394&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/mem/mod_slotmem.c (original)
+++ httpd/httpd/trunk/modules/mem/mod_slotmem.c Wed Dec 31 05:40:03 2008
@@ -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"));

Modified: httpd/httpd/trunk/modules/mem/mod_slotmem.h
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/mem/mod_slotmem.h?rev=730394&r1=730393&r2=730394&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/mem/mod_slotmem.h (original)
+++ httpd/httpd/trunk/modules/mem/mod_slotmem.h Wed Dec 31 05:40:03 2008
@@ -143,6 +143,12 @@
  *  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



Mime
View raw message