/[LeafOK_CVS]/lbbs/include/common.h
ViewVC logotype

Diff of /lbbs/include/common.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.10 by sysadm, Fri May 6 15:48:44 2005 UTC Revision 1.17 by sysadm, Fri May 2 03:34:58 2025 UTC
# Line 1  Line 1 
1  /***************************************************************************  /***************************************************************************
2                            common.h  -  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
6      email                : leaflet@leafok.com          email                : leaflet@leafok.com
7   ***************************************************************************/   ***************************************************************************/
8    
9  /***************************************************************************  /***************************************************************************
# Line 18  Line 18 
18  #ifndef _COMMON_H_  #ifndef _COMMON_H_
19  #define _COMMON_H_  #define _COMMON_H_
20    
21  //Version  #include <stddef.h>
22    
23    #define LINE_BUFFER_LEN 256
24    #define FILE_PATH_LEN 1024
25    
26    // Version
27  extern char app_version[256];  extern char app_version[256];
28    
29  //Enviroment  // Enviroment
30  extern char app_home_dir[256];  extern char app_home_dir[256];
31  extern char app_temp_dir[256];  extern char app_temp_dir[256];
32    
33  //Network  // Network
34  extern int socket_server;  extern int socket_server;
35  extern int socket_client;  extern int socket_client;
36  extern char hostaddr_server[50];  extern char hostaddr_server[50];
# Line 33  extern char hostaddr_client[50]; Line 38  extern char hostaddr_client[50];
38  extern int port_server;  extern int port_server;
39  extern int port_client;  extern int port_client;
40    
41  //Database  // Signal
42  extern char DB_host[256];  #define SIG_RELOAD_MENU 0x22
43  extern char DB_username[50];  
44  extern char DB_password[50];  extern const char *str_space(char *string, int length);
45  extern char DB_database[50];  extern const char *get_time_str(char *string, size_t length);
46    
47    // Signal handler
48    extern void reload_bbs_menu(int);
49    extern void system_exit(int);
50    extern void child_exit(int);
51    
52    // System
53    extern int SYS_exit;
54    extern int SYS_child_process_count;
55    
56  #endif //_COMMON_H_  #endif //_COMMON_H_


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1