| 1 |
/*************************************************************************** |
/*************************************************************************** |
| 2 |
bbsd.c - description |
common.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 |
| 15 |
* * |
* * |
| 16 |
***************************************************************************/ |
***************************************************************************/ |
| 17 |
|
|
| 18 |
#include <stdio.h> |
#ifndef _COMMON_H_ |
| 19 |
#include <time.h> |
#define _COMMON_H_ |
| 20 |
#include <unistd.h> |
|
| 21 |
#include <sys/param.h> |
//Version |
| 22 |
#include <sys/types.h> |
extern char app_version[256]; |
| 23 |
#include <sys/stat.h> |
|
| 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 0x22 |
| 44 |
|
|
| 45 |
|
//Signal handler |
| 46 |
|
extern void reload_bbs_menu (int); |
| 47 |
|
extern void system_exit (int); |
| 48 |
|
extern void child_exit (int); |
| 49 |
|
|
| 50 |
|
//System |
| 51 |
|
extern int SYS_exit; |
| 52 |
|
extern int SYS_child_process_count; |
| 53 |
|
|
| 54 |
|
#endif //_COMMON_H_ |