You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2010/03/03 21:10:27 UTC

svn commit: r918671 - /httpd/httpd/trunk/modules/arch/win32/mod_isapi.c

Author: trawick
Date: Wed Mar  3 20:10:26 2010
New Revision: 918671

URL: http://svn.apache.org/viewvc?rev=918671&view=rev
Log:
follow up to r918665:

These particular functions can't be static because they're 
part of ISAPI, so use a different mechanism to quiet the gcc 
warnings.

Modified:
    httpd/httpd/trunk/modules/arch/win32/mod_isapi.c

Modified: httpd/httpd/trunk/modules/arch/win32/mod_isapi.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/arch/win32/mod_isapi.c?rev=918671&r1=918670&r2=918671&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/arch/win32/mod_isapi.c (original)
+++ httpd/httpd/trunk/modules/arch/win32/mod_isapi.c Wed Mar  3 20:10:26 2010
@@ -80,6 +80,29 @@
 apr_status_t isapi_lookup(apr_pool_t *p, server_rec *s, request_rec *r,
                           const char *fpath, isapi_loaded** isa);
 
+/* In addition to being provided via the EXTENSION_CONTROL_BLOCK,
+ * these four are also callable directly.
+ */
+int APR_THREAD_FUNC GetServerVariable (isapi_cid    *cid,
+                                       char         *variable_name,
+                                       void         *buf_ptr,
+                                       apr_uint32_t *buf_size);
+
+int APR_THREAD_FUNC ReadClient(isapi_cid    *cid,
+                               void         *buf_data,
+                               apr_uint32_t *buf_size);
+
+int APR_THREAD_FUNC WriteClient(isapi_cid    *cid,
+                                void         *buf_ptr,
+                                apr_uint32_t *size_arg,
+                                apr_uint32_t  flags);
+
+int APR_THREAD_FUNC ServerSupportFunction(isapi_cid    *cid,
+                                          apr_uint32_t  HSE_code,
+                                          void         *buf_ptr,
+                                          apr_uint32_t *buf_size,
+                                          apr_uint32_t *data_type);
+
 static void *create_isapi_dir_config(apr_pool_t *p, char *dummy)
 {
     isapi_dir_conf *dir = apr_palloc(p, sizeof(isapi_dir_conf));
@@ -485,10 +508,10 @@
     apr_thread_mutex_t      *completed;
 };
 
-static int APR_THREAD_FUNC GetServerVariable (isapi_cid    *cid,
-                                              char         *variable_name,
-                                              void         *buf_ptr,
-                                              apr_uint32_t *buf_size)
+int APR_THREAD_FUNC GetServerVariable (isapi_cid    *cid,
+                                       char         *variable_name,
+                                       void         *buf_ptr,
+                                       apr_uint32_t *buf_size)
 {
     request_rec *r = cid->r;
     const char *result;
@@ -587,9 +610,9 @@
     return 0;
 }
 
-static int APR_THREAD_FUNC ReadClient(isapi_cid    *cid,
-                                      void         *buf_data,
-                                      apr_uint32_t *buf_size)
+int APR_THREAD_FUNC ReadClient(isapi_cid    *cid,
+                               void         *buf_data,
+                               apr_uint32_t *buf_size)
 {
     request_rec *r = cid->r;
     apr_uint32_t read = 0;
@@ -804,10 +827,10 @@
     return ate;
 }
 
-static int APR_THREAD_FUNC WriteClient(isapi_cid    *cid,
-                                       void         *buf_ptr,
-                                       apr_uint32_t *size_arg,
-                                       apr_uint32_t  flags)
+int APR_THREAD_FUNC WriteClient(isapi_cid    *cid,
+                                void         *buf_ptr,
+                                apr_uint32_t *size_arg,
+                                apr_uint32_t  flags)
 {
     request_rec *r = cid->r;
     conn_rec *c = r->connection;
@@ -860,11 +883,11 @@
     return (rv == APR_SUCCESS);
 }
 
-static int APR_THREAD_FUNC ServerSupportFunction(isapi_cid    *cid,
-                                                 apr_uint32_t  HSE_code,
-                                                 void         *buf_ptr,
-                                                 apr_uint32_t *buf_size,
-                                                 apr_uint32_t *data_type)
+int APR_THREAD_FUNC ServerSupportFunction(isapi_cid    *cid,
+                                          apr_uint32_t  HSE_code,
+                                          void         *buf_ptr,
+                                          apr_uint32_t *buf_size,
+                                          apr_uint32_t *data_type)
 {
     request_rec *r = cid->r;
     conn_rec *c = r->connection;