pool.h

Go to the documentation of this file.
00001 /*
00002   mysqlfs - MySQL Filesystem
00003   Copyright (C) 2006 Tsukasa Hamano <code@cuspy.org>
00004   $Id: pool.h 55 2009-07-12 22:23:33Z chickenandporn $
00005 
00006   This program can be distributed under the terms of the GNU GPL.
00007   See the file COPYING.
00008 */
00009 
00016 struct mysqlfs_opt {
00017     char *host;                 
00018     char *user;                 
00019     char *passwd;               
00020     char *db;                   
00021     unsigned int port;          
00022     char *socket;               
00023     unsigned int fsck;          
00024     char *mycnf_group;          
00025     unsigned int init_conns;    
00026     unsigned int max_idling_conns;      
00027     char *logfile;              
00028     int bg;                     
00029 };
00030 
00032 int pool_init(struct mysqlfs_opt *opt);
00033 
00035 void pool_cleanup();
00036 
00038 void *pool_get();
00039 
00041 void pool_put(void *conn);

Generated on Sun Jul 12 20:25:26 2009 for mysqlfs by  doxygen 1.4.7