Main Page | Class List | File List | Class Members | File Members

mycgisession.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2005 Christian Theil Have (christiantheilhave@gmail.com)
00003  *
00004  * This file is part of mycgisession.
00005  * 
00006  * mycgisession is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  * 
00011  * mycgisession is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  * 
00016  * You should have received a copy of the GNU General Public License
00017  * along with mycgisession; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  *
00020  */
00021 
00027 #ifndef cgisession_h
00028 #define cgisession_h
00029 
00030 #include <mysql/mysql.h>
00031 #include <stdlib.h>
00032 
00033 
00039 int cgisession_init_mysql_connection(char *host,
00040                                      char *username,
00041                                      char *password,
00042                                      char *database,
00043                                      unsigned int port);
00044 
00049 int cgisession_have_mysql_connection(MYSQL* m);
00050 
00060 int cgisession_load(char* key);
00061 
00065 int cgisession_save();
00066 
00071 int cgisession_new();
00072 
00076 void cgisession_free();
00077 
00081 int cgisession_set_data(void* data, unsigned int size);
00082 
00086 void* cgisession_get_data();
00087 
00091 char* cgisession_get_key();
00092 
00096 void cgisession_dump();
00097 
00098 
00099 #endif /* cgisession_h */

Generated on Tue Feb 15 13:35:47 2005 for MyCGISession by  doxygen 1.3.9.1