| 1 |
#include <stdio.h> |
/*************************************************************************** |
| 2 |
#include <stdlib.h> |
common.h - description |
| 3 |
#include <ctype.h> |
------------------- |
| 4 |
#include <string.h> |
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 |
|
#ifndef _COMMON_H_ |
| 19 |
|
#define _COMMON_H_ |
| 20 |
|
|
| 21 |
|
//Version |
| 22 |
|
extern char app_version[256]; |
| 23 |
|
|
| 24 |
|
//Enviroment |
| 25 |
|
extern char app_home_dir[256]; |
| 26 |
|
extern char app_temp_dir[256]; |
| 27 |
|
|
| 28 |
|
//Network |
| 29 |
|
extern int socket_server; |
| 30 |
|
extern int socket_client; |
| 31 |
|
extern char hostaddr_server[50]; |
| 32 |
|
extern char hostaddr_client[50]; |
| 33 |
|
extern int port_server; |
| 34 |
|
extern int port_client; |
| 35 |
|
|
| 36 |
|
//Database |
| 37 |
|
extern char DB_host[256]; |
| 38 |
|
extern char DB_username[50]; |
| 39 |
|
extern char DB_password[50]; |
| 40 |
|
extern char DB_database[50]; |
| 41 |
|
|
| 42 |
|
//Signal |
| 43 |
|
#define SIG_RELOAD_MENU 0x31 |
| 44 |
|
#define SIG_BBS_EXIT 0x32 |
| 45 |
|
|
| 46 |
|
//Signal handler |
| 47 |
|
extern void reload_bbs_menu (int); |
| 48 |
|
|
| 49 |
|
#endif //_COMMON_H_ |