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

Annotation of /lbbs/include/common.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.17 - (hide annotations)
Fri May 2 03:34:58 2025 UTC (10 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.16: +3 -7 lines
Content type: text/x-chdr
Refine

1 sysadm 1.3 /***************************************************************************
2 sysadm 1.14 common.h - description
3     -------------------
4     begin : Mon Oct 18 2004
5     copyright : (C) 2004 by Leaflet
6     email : leaflet@leafok.com
7 sysadm 1.3 ***************************************************************************/
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 sysadm 1.10 #ifndef _COMMON_H_
19     #define _COMMON_H_
20    
21 sysadm 1.16 #include <stddef.h>
22    
23 sysadm 1.17 #define LINE_BUFFER_LEN 256
24     #define FILE_PATH_LEN 1024
25    
26 sysadm 1.14 // Version
27 sysadm 1.8 extern char app_version[256];
28 sysadm 1.5
29 sysadm 1.14 // Enviroment
30 sysadm 1.7 extern char app_home_dir[256];
31 sysadm 1.9 extern char app_temp_dir[256];
32 sysadm 1.7
33 sysadm 1.14 // Network
34 sysadm 1.5 extern int socket_server;
35     extern int socket_client;
36     extern char hostaddr_server[50];
37     extern char hostaddr_client[50];
38     extern int port_server;
39     extern int port_client;
40 sysadm 1.7
41 sysadm 1.14 // Signal
42     #define SIG_RELOAD_MENU 0x22
43 sysadm 1.11
44 sysadm 1.16 extern const char *str_space(char *string, int length);
45     extern const char *get_time_str(char *string, size_t length);
46    
47 sysadm 1.14 // Signal handler
48     extern void reload_bbs_menu(int);
49     extern void system_exit(int);
50     extern void child_exit(int);
51 sysadm 1.12
52 sysadm 1.14 // System
53 sysadm 1.12 extern int SYS_exit;
54     extern int SYS_child_process_count;
55 sysadm 1.11
56 sysadm 1.10 #endif //_COMMON_H_

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