Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 73820 invoked from network); 9 Dec 2008 15:19:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Dec 2008 15:19:34 -0000 Received: (qmail 82062 invoked by uid 500); 9 Dec 2008 15:19:46 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 82011 invoked by uid 500); 9 Dec 2008 15:19:46 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 82002 invoked by uid 99); 9 Dec 2008 15:19:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2008 07:19:46 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2008 15:19:31 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id BDA102388879; Tue, 9 Dec 2008 07:19:08 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r724745 - in /httpd/httpd/trunk: include/ap_socache.h modules/ssl/ssl_scache.c Date: Tue, 09 Dec 2008 15:19:08 -0000 To: cvs@httpd.apache.org From: jorton@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20081209151908.BDA102388879@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jorton Date: Tue Dec 9 07:19:08 2008 New Revision: 724745 URL: http://svn.apache.org/viewvc?rev=724745&view=rev Log: * include/ap_socache.h: Use C++ safety wrappers, and rename ->delete to ->remove since the former is a C++ reserved word. * modules/ssl/ssl_scache.c (ssl_scache_remove): Update accordingly. Modified: httpd/httpd/trunk/include/ap_socache.h httpd/httpd/trunk/modules/ssl/ssl_scache.c Modified: httpd/httpd/trunk/include/ap_socache.h URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/include/ap_socache.h?rev=724745&r1=724744&r2=724745&view=diff ============================================================================== --- httpd/httpd/trunk/include/ap_socache.h (original) +++ httpd/httpd/trunk/include/ap_socache.h Tue Dec 9 07:19:08 2008 @@ -30,7 +30,11 @@ #include "ap_provider.h" #include "apr_pools.h" -/** If this flag is set, the store/retrieve/delete/status interfaces +#ifdef __cplusplus +extern "C" { +#endif + +/** If this flag is set, the store/retrieve/remove/status interfaces * of the provider are NOT safe to be called concurrently from * multiple processes or threads, and an external global mutex must be * used to serialize access to the provider. */ @@ -141,7 +145,7 @@ * @param idlen Length of id blob * @param pool Pool for temporary allocations. */ - void (*delete)(ap_socache_instance_t *instance, server_rec *s, + void (*remove)(ap_socache_instance_t *instance, server_rec *s, const unsigned char *id, unsigned int idlen, apr_pool_t *pool); @@ -163,5 +167,9 @@ /** Default provider name. */ #define AP_SOCACHE_DEFAULT_PROVIDER "default" +#ifdef __cplusplus +} +#endif + #endif /* AP_SOCACHE_H */ /** @} */ Modified: httpd/httpd/trunk/modules/ssl/ssl_scache.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ssl/ssl_scache.c?rev=724745&r1=724744&r2=724745&view=diff ============================================================================== --- httpd/httpd/trunk/modules/ssl/ssl_scache.c (original) +++ httpd/httpd/trunk/modules/ssl/ssl_scache.c Tue Dec 9 07:19:08 2008 @@ -161,7 +161,7 @@ ssl_mutex_on(s); } - mc->sesscache->delete(mc->sesscache_context, s, id, idlen, p); + mc->sesscache->remove(mc->sesscache_context, s, id, idlen, p); if (mc->sesscache->flags & AP_SOCACHE_FLAG_NOTMPSAFE) { ssl_mutex_off(s);