| 1 |
/*************************************************************************** |
/*************************************************************************** |
| 2 |
database.h - description |
database.h - description |
| 3 |
------------------- |
------------------- |
| 4 |
begin : Mon Oct 18 2004 |
begin : Mon Oct 18 2004 |
| 5 |
copyright : (C) 2004 by Leaflet |
copyright : (C) 2004 by Leaflet |
| 6 |
email : leaflet@leafok.com |
email : leaflet@leafok.com |
| 7 |
***************************************************************************/ |
***************************************************************************/ |
| 8 |
|
|
| 9 |
/*************************************************************************** |
/*************************************************************************** |
| 15 |
* * |
* * |
| 16 |
***************************************************************************/ |
***************************************************************************/ |
| 17 |
|
|
| 18 |
|
#ifndef _DATABASE_H_ |
| 19 |
|
#define _DATABASE_H_ |
| 20 |
|
|
| 21 |
#include <mysql.h> |
#include <mysql.h> |
| 22 |
|
|
| 23 |
MYSQL * |
#define SQL_BUFFER_LEN 2048 |
| 24 |
db_open (); |
|
| 25 |
|
// Database |
| 26 |
|
extern char DB_host[256]; |
| 27 |
|
extern char DB_username[50]; |
| 28 |
|
extern char DB_password[50]; |
| 29 |
|
extern char DB_database[50]; |
| 30 |
|
extern char DB_timezone[50]; |
| 31 |
|
|
| 32 |
|
extern MYSQL *db_open(); |
| 33 |
|
|
| 34 |
|
#endif //_DATABASE_H_ |