Update of /cvsroot/mod-auth/mod_dbi_pool/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1188/include
Modified Files:
mod_dbi_pool.h
Log Message:
the module now compiles.
Index: mod_dbi_pool.h
===================================================================
RCS file: /cvsroot/mod-auth/mod_dbi_pool/include/mod_dbi_pool.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- mod_dbi_pool.h 29 Feb 2004 08:48:27 -0000 1.2
+++ mod_dbi_pool.h 3 Mar 2004 05:42:56 -0000 1.3
@@ -27,16 +27,22 @@
/**
* mod_dbi_pool: manage a pool of libdbi connections.
+ *
* EXPORTS:
- * dbi_conn* dbipool_open(server_rec*)
+ * dbi_conn *dbipool_open(conn_id* id)
* - retrieve a connection from the pool and check it's valid
* - May return null and log a message on error.
- * void dbipool_close(server_rec*, dbi_conn*)
+ * void dbipool_close(conn_id* id, dbi_conn* conn)
* - return a connection to the pool after use
*
*/
+#ifndef _INCLUDE_MOD_DBI_POOL_H
+#define _INCLUDE_MOD_DBI_POOL_H
+
+#include <apr_reslist.h>
+
#define DFLT_DBI_DBNAME "mod_dbi"
#define DFLT_DBI_HOST "localhost"
#define DFLT_DBI_DRIVER "mysql"
@@ -83,3 +89,23 @@
int conn_max;
int conn_ttl;
} dbi_config_rec;
+
+//XXXXX: why aren't we seeing the apr_relist header?
+typedef struct apr_reslist_t apr_reslist_t;
+
+typedef const char *conn_id;
+
+typedef struct dbi_config_struct
+{
+ const char name;
+ dbi_config_rec rec;
+ apr_reslist_t *pool;
+} dbi_config;
+
+
+dbi_conn *dbipool_open(conn_id* id);
+
+void dbipool_close(conn_id* id, dbi_conn* conn);
+
+
+#endif
|