You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by mi...@apache.org on 2010/09/22 00:55:23 UTC
svn commit: r999681 - in /httpd/httpd/trunk: include/ap_mmn.h
modules/cache/cache_storage.c modules/cache/cache_storage.h
modules/cache/mod_cache.c modules/cache/mod_cache.h
Author: minfrin
Date: Tue Sep 21 22:55:22 2010
New Revision: 999681
URL: http://svn.apache.org/viewvc?rev=999681&view=rev
Log:
Move private cache_* declarations out of the public mod_cache.h file.
Added:
httpd/httpd/trunk/modules/cache/cache_storage.h
Modified:
httpd/httpd/trunk/include/ap_mmn.h
httpd/httpd/trunk/modules/cache/cache_storage.c
httpd/httpd/trunk/modules/cache/mod_cache.c
httpd/httpd/trunk/modules/cache/mod_cache.h
Modified: httpd/httpd/trunk/include/ap_mmn.h
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/include/ap_mmn.h?rev=999681&r1=999680&r2=999681&view=diff
==============================================================================
--- httpd/httpd/trunk/include/ap_mmn.h (original)
+++ httpd/httpd/trunk/include/ap_mmn.h Tue Sep 21 22:55:22 2010
@@ -261,14 +261,16 @@
* 20100919.1 (2.3.9-dev) Introduce ap_rxplus util/API
* 20100921.0 (2.3.9-dev) Add an apr_bucket_brigade to the create_entity
* provider interface for mod_cache.h.
+ * 20100922.0 (2.3.9-dev) Move cache_* functions from mod_cache.h to a
+ * private header file.
*/
#define MODULE_MAGIC_COOKIE 0x41503234UL /* "AP24" */
#ifndef MODULE_MAGIC_NUMBER_MAJOR
-#define MODULE_MAGIC_NUMBER_MAJOR 20100919
+#define MODULE_MAGIC_NUMBER_MAJOR 20100922
#endif
-#define MODULE_MAGIC_NUMBER_MINOR 1 /* 0...n */
+#define MODULE_MAGIC_NUMBER_MINOR 0 /* 0...n */
/**
* Determine if the server's current MODULE_MAGIC_NUMBER is at least a
Modified: httpd/httpd/trunk/modules/cache/cache_storage.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/cache_storage.c?rev=999681&r1=999680&r2=999681&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cache/cache_storage.c (original)
+++ httpd/httpd/trunk/modules/cache/cache_storage.c Tue Sep 21 22:55:22 2010
@@ -16,6 +16,8 @@
#include "mod_cache.h"
+#include "cache_storage.h"
+
APLOG_USE_MODULE(cache);
extern APR_OPTIONAL_FN_TYPE(ap_cache_generate_key) *cache_generate_key;
Added: httpd/httpd/trunk/modules/cache/cache_storage.h
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/cache_storage.h?rev=999681&view=auto
==============================================================================
--- httpd/httpd/trunk/modules/cache/cache_storage.h (added)
+++ httpd/httpd/trunk/modules/cache/cache_storage.h Tue Sep 21 22:55:22 2010
@@ -0,0 +1,49 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @file cache_storage.h
+ * @brief Cache Storage Functions
+ *
+ * @defgroup Cache_storage Cache Storage Functions
+ * @ingroup MOD_CACHE
+ * @{
+ */
+
+#ifndef CACHE_STORAGE_H
+#define CACHE_STORAGE_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "mod_cache.h"
+
+/**
+ * cache_storage.c
+ */
+#define MOD_CACHE_REQUEST_REC "mod_cache_request_rec"
+int cache_remove_url(cache_request_rec *cache, apr_pool_t *p);
+int cache_create_entity(request_rec *r, apr_off_t size, apr_bucket_brigade *in);
+int cache_select(request_rec *r);
+apr_status_t cache_generate_key_default( request_rec *r, apr_pool_t*p, char**key );
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* !CACHE_STORAGE_H */
+/** @} */
Modified: httpd/httpd/trunk/modules/cache/mod_cache.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/mod_cache.c?rev=999681&r1=999680&r2=999681&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cache/mod_cache.c (original)
+++ httpd/httpd/trunk/modules/cache/mod_cache.c Tue Sep 21 22:55:22 2010
@@ -16,6 +16,8 @@
#include "mod_cache.h"
+#include "cache_storage.h"
+
module AP_MODULE_DECLARE_DATA cache_module;
APR_OPTIONAL_FN_TYPE(ap_cache_generate_key) *cache_generate_key;
Modified: httpd/httpd/trunk/modules/cache/mod_cache.h
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/mod_cache.h?rev=999681&r1=999680&r2=999681&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cache/mod_cache.h (original)
+++ httpd/httpd/trunk/modules/cache/mod_cache.h Tue Sep 21 22:55:22 2010
@@ -383,30 +383,6 @@ CACHE_DECLARE(apr_table_t *)ap_cache_cac
apr_table_t *t,
server_rec *s);
-/**
- * cache_storage.c
- */
-#define MOD_CACHE_REQUEST_REC "mod_cache_request_rec"
-int cache_remove_url(cache_request_rec *cache, apr_pool_t *p);
-int cache_create_entity(request_rec *r, apr_off_t size, apr_bucket_brigade *in);
-int cache_select(request_rec *r);
-apr_status_t cache_generate_key_default( request_rec *r, apr_pool_t*p, char**key );
-
-
-/**
- * create a key for the cache based on the request record
- * this is the 'default' version, which can be overridden by a default function
- */
-const char* cache_create_key( request_rec*r );
-
-/*
-apr_status_t cache_store_entity_headers(cache_handle_t *h, request_rec *r, cache_info *info);
-apr_status_t cache_store_entity_body(cache_handle_t *h, request_rec *r, apr_bucket_brigade *bb);
-
-apr_status_t cache_recall_entity_headers(cache_handle_t *h, request_rec *r);
-apr_status_t cache_recall_entity_body(cache_handle_t *h, apr_pool_t *p, apr_bucket_brigade *bb);
-*/
-
/* hooks */
APR_DECLARE_OPTIONAL_FN(apr_status_t,