Implemented remaining communication timeouts and maximum retry count.
[mdsms.git] / setup.h
1 /*
2  * $Id$
3  *
4  * $Log$
5  * Revision 1.2  1999/06/03 10:38:52  short
6  * Implemented remaining communication timeouts and maximum retry count.
7  *
8  * Revision 1.1.1.1  1999/05/26 13:06:26  short
9  * First alpha release.
10  *
11  */
12
13 #define CONFIG_MAIN "/etc/" PACKAGE "rc"
14 #define CONFIG_HOME    "/." PACKAGE "rc" /* $HOME is prepended automatically */
15 #define DEF_DEVICE "/dev/mobildock"
16 #ifndef DEF_LOCKFILE
17 #define DEF_LOCKFILE "/var/lock/LCK..%s"
18 #endif
19 #define DEF_MAXRETRY 10
20 #define DEF_READTIME 60*60
21 #define DEF_CHARTIME 10
22 #define DEF_CMDTIME 500
23 #define MAXCONFIG 4096
24 #define MAXCFGARGS 256
25 #define MAXCFGLOOP 5
26 #define MAXCFGNUM 20
27 #define DEVLOCK_PERIOD 2 /* sec between attempts to obtain a lockfile */
28 #define DEVLOCK_MAXEMPTY 1
29 #define MAXSENDTIME 2
30 #define ADDR_NAT 0x81
31 #define ADDR_INT 0x91
32 #define PDU_TYPE 0x11
33 #define PDU_MR   0x00
34 #define PDU_PID  0x00
35 #define PDU_DCS  0x00
36 #define PDU_VP   0xFF
37 #define MAXNUMLEN 20
38 #define MAXBODYLEN 160
39 #define BODYLOAD 200
40 #define ERROR_SUBSTR1 "ERROR"
41 #define ERROR_SUBSTR2 "\nError:"