eurephiadb_struct.h
1 /* eurephiadb_struct.h -- Database connection struct 2 * 3 * GPLv2 only - Copyright (C) 2008 - 2012 4 * David Sommerseth <dazo@users.sourceforge.net> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; version 2 9 * of the License. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19 * 20 */ 21 22 /** 23 * @file eurephiadb_struct.h 24 * @author David Sommerseth <dazo@users.sourceforge.net> 25 * @date 2008-11-05 26 * 27 * @brief Definition of the eDBconn struct, a database independent 28 * connection handle 29 * 30 */ 31 32 #ifndef EUREPHIADB_STRUCT_H_ 33 # define EUREPHIADB_STRUCT_H_ 34 35 #include "eurephia_values_struct.h" 36 37 /** 38 * Struct containing connection to the database we are using 39 */ 40 typedef struct { 41 void *dbhandle; /**< The DB handle used for the connection */ 42 char *dbname; /**< String with name of database, used in logs */ 43 eurephiaVALUES *config; /**< eurephia config parameters retrieved from the database */ 44 } eDBconn; 45 46 #endif