| 25 |
#define FILE_PATH_LEN 4096 |
#define FILE_PATH_LEN 4096 |
| 26 |
|
|
| 27 |
// Version |
// Version |
| 28 |
#define APP_NAME "LBBS" |
#define APP_INFO (PACKAGE_STRING " build on " __DATE__ " " __TIME__) |
|
#define APP_VER "1.3.0" |
|
|
#define APP_INFO (APP_NAME " version " APP_VER " build on " __DATE__ " " __TIME__) |
|
| 29 |
|
|
| 30 |
// Enviroment |
// Enviroment |
| 31 |
#define CONF_BBSD "conf/bbsd.conf" |
#define CONF_BBSD "conf/bbsd.conf" |
| 82 |
extern ssh_session SSH_session; |
extern ssh_session SSH_session; |
| 83 |
extern ssh_channel SSH_channel; |
extern ssh_channel SSH_channel; |
| 84 |
|
|
|
extern const char *get_time_str(char *string, size_t length); |
|
|
|
|
| 85 |
// Signal handler |
// Signal handler |
| 86 |
extern void sig_hup_handler(int); |
extern void sig_hup_handler(int); |
| 87 |
extern void sig_term_handler(int); |
extern void sig_term_handler(int); |
| 93 |
extern volatile int SYS_child_exit; |
extern volatile int SYS_child_exit; |
| 94 |
extern volatile int SYS_conf_reload; |
extern volatile int SYS_conf_reload; |
| 95 |
|
|
|
// Network |
|
|
extern const char *ip_mask(char *s, int level, char mask); |
|
|
|
|
| 96 |
#endif //_COMMON_H_ |
#endif //_COMMON_H_ |