| 1 |
/***************************************************************************
|
| 2 |
common.h - description
|
| 3 |
-------------------
|
| 4 |
begin : Mon Oct 18 2004
|
| 5 |
copyright : (C) 2004 by Leaflet
|
| 6 |
email : leaflet@leafok.com
|
| 7 |
***************************************************************************/
|
| 8 |
|
| 9 |
/***************************************************************************
|
| 10 |
* *
|
| 11 |
* This program is free software; you can redistribute it and/or modify *
|
| 12 |
* it under the terms of the GNU General Public License as published by *
|
| 13 |
* the Free Software Foundation; either version 2 of the License, or *
|
| 14 |
* (at your option) any later version. *
|
| 15 |
* *
|
| 16 |
***************************************************************************/
|
| 17 |
|
| 18 |
#include <stdio.h>
|
| 19 |
#include <time.h>
|
| 20 |
#include <ctype.h>
|
| 21 |
#include <unistd.h>
|
| 22 |
#include <signal.h>
|
| 23 |
#include <sys/param.h>
|
| 24 |
#include <sys/types.h>
|
| 25 |
#include <sys/stat.h>
|
| 26 |
#include <sys/socket.h>
|
| 27 |
#include <netinet/in.h>
|
| 28 |
#include <netdb.h>
|
| 29 |
#include <mysql/mysql.h>
|
| 30 |
|
| 31 |
//Enviroment
|
| 32 |
extern char app_home_dir[256];
|
| 33 |
|
| 34 |
//Network
|
| 35 |
extern int socket_server;
|
| 36 |
extern int socket_client;
|
| 37 |
extern char hostaddr_server[50];
|
| 38 |
extern char hostaddr_client[50];
|
| 39 |
extern int port_server;
|
| 40 |
extern int port_client;
|
| 41 |
|
| 42 |
//Database
|
| 43 |
extern char DB_host[256];
|
| 44 |
extern char DB_username[50];
|
| 45 |
extern char DB_password[50];
|