httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r348009 - /httpd/httpd/branches/2.2.x/modules/database/mod_dbd.c
Date Mon, 21 Nov 2005 23:03:03 GMT
Author: niq
Date: Mon Nov 21 15:02:59 2005
New Revision: 348009

URL: http://svn.apache.org/viewcvs?rev=348009&view=rev
Log:
Wrap exported functions in AP_DECLARE

Modified:
    httpd/httpd/branches/2.2.x/modules/database/mod_dbd.c

Modified: httpd/httpd/branches/2.2.x/modules/database/mod_dbd.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.2.x/modules/database/mod_dbd.c?rev=348009&r1=348008&r2=348009&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/modules/database/mod_dbd.c (original)
+++ httpd/httpd/branches/2.2.x/modules/database/mod_dbd.c Mon Nov 21 15:02:59 2005
@@ -119,7 +119,8 @@
     }
     return NULL;
 }
-void ap_dbd_prepare(server_rec *s, const char *query, const char *label)
+AP_DECLARE(void) ap_dbd_prepare(server_rec *s, const char *query,
+                                const char *label)
 {
     svr_cfg *svr = ap_get_module_config(s->module_config, &dbd_module);
     dbd_prepared *prepared = apr_pcalloc(s->process->pool, sizeof(dbd_prepared));
@@ -299,7 +300,7 @@
         - open acquires a connection from the pool (opens one if necessary)
         - close releases it back in to the pool
 */
-void ap_dbd_close(server_rec *s, ap_dbd_t *sql)
+AP_DECLARE(void) ap_dbd_close(server_rec *s, ap_dbd_t *sql)
 {
     svr_cfg *svr = ap_get_module_config(s->module_config, &dbd_module);
     if (!svr->persist) {
@@ -318,7 +319,7 @@
 }
 #define arec ((ap_dbd_t*)rec)
 #if APR_HAS_THREADS
-ap_dbd_t* ap_dbd_open(apr_pool_t *pool, server_rec *s)
+AP_DECLARE(ap_dbd_t*) ap_dbd_open(apr_pool_t *pool, server_rec *s)
 {
     void *rec = NULL;
     svr_cfg *svr = ap_get_module_config(s->module_config, &dbd_module);
@@ -355,7 +356,7 @@
     return arec;
 }
 #else
-ap_dbd_t* ap_dbd_open(apr_pool_t *pool, server_rec *s)
+AP_DECLARE(ap_dbd_t*) ap_dbd_open(apr_pool_t *pool, server_rec *s)
 {
     apr_status_t rv = APR_SUCCESS;
     const char *errmsg;
@@ -404,7 +405,7 @@
     apr_reslist_release(req->dbpool, req->conn);
     return APR_SUCCESS;
 }
-ap_dbd_t *ap_dbd_acquire(request_rec *r)
+AP_DECLARE(ap_dbd_t *) ap_dbd_acquire(request_rec *r)
 {
     svr_cfg *svr;
     dbd_pool_rec *req = ap_get_module_config(r->request_config, &dbd_module);
@@ -427,7 +428,7 @@
     }
     return req->conn;
 }
-ap_dbd_t *ap_dbd_cacquire(conn_rec *c)
+AP_DECLARE(ap_dbd_t *) ap_dbd_cacquire(conn_rec *c)
 {
     svr_cfg *svr;
     dbd_pool_rec *req = ap_get_module_config(c->conn_config, &dbd_module);
@@ -451,7 +452,7 @@
     return req->conn;
 }
 #else
-ap_dbd_t *ap_dbd_acquire(request_rec *r)
+AP_DECLARE(ap_dbd_t *) ap_dbd_acquire(request_rec *r)
 {
     svr_cfg *svr;
     ap_dbd_t *ret = ap_get_module_config(r->request_config, &dbd_module);
@@ -469,7 +470,7 @@
     }
     return ret;
 }
-ap_dbd_t *ap_dbd_cacquire(conn_rec *c)
+AP_DECLARE(ap_dbd_t *) ap_dbd_cacquire(conn_rec *c)
 {
     svr_cfg *svr;
     ap_dbd_t *ret = ap_get_module_config(c->conn_config, &dbd_module);



Mime
View raw message