Fixed --log long option recognition ('l'->'L').
[mdsms.git] / setup.h
1 /*
2  * $Id$
3  */
4
5 #define CONFIG_MAIN "/etc/" PACKAGE "rc" /* global configuration file */
6 #define CONFIG_HOME    "/." PACKAGE "rc" /* user-local cfg file,
7                                             $HOME is prepended automatically */
8 #define DEF_DEVICE "/dev/mobildock" /* --device default */
9 #define DEF_LOGNAME "" /* --log default */
10 #ifndef DEF_LOCKFILE
11 #define DEF_LOCKFILE "/var/lock/LCK..%s" /* --lockfile default */
12 #endif
13 #define DEF_MAXRETRY 10 /* --maxretry default */
14 #define DEF_READTIME 60*60 /* --readtime default */
15 #define DEF_CHARTIME 10 /* --chartime default
16                            (500ms per 80char=6.25ms recommended by Siemens */
17 #define DEF_CMDTIME 500 /* --cmdtime default */
18 #define MAXCONFIG 4096 /* maximum allowed size of any configuration file */
19 #define MAXCFGARGS 256 /* maximum allowed number of arguments in cfg file */
20 #define MAXCFGLOOP 5 /* maximum number of recursive opens in cfg files */
21 #define MAXCFGNUM 20 /* total maximum number of cfgs read during one run */
22 #define DEVLOCK_PERIOD 2 /* seconds between attempts to obtain a lockfile */
23 #define DEVLOCK_MAXEMPTY 1 /* seconds to wait while lockfile is empty
24                               to prevent races during lock creation */
25 #define MAXSENDTIME 2 /* max. allowed number of seconds for sending one char */
26 #define LOCKREPORT 15 /* report to logfile if device lock took more than
27                          this parameter taken in seconds */
28 #define ADDR_NAT 0x81 /* PDU address type for non-'+' numbers */
29 #define ADDR_INT 0x91 /* PDU address type for numbers prefixed by '+' */
30 #define PDU_TYPE 0x11 /* first byte of PDU, SMS submit */
31 #define PDU_MR   0x00 /* default message reference, filled by Siemens A1 */
32 #define PDU_PID  0x00 /* PDU protocol identifier, SMS message type */
33 #define PDU_DCS  0x00 /* PDU Data Coding Scheme, 7-bit class-2 message */
34 #define PDU_VP   0xFF /* PDU Validity Period, maximum relative time */
35 #define MAXNUMLEN 20 /* maximum number of digits in GSM number */
36 #define MAXBODYLEN 160 /* maximum length of characters in SMS body */
37 #define BODYLOAD 200 /* number of bytes to read when body not on command line */
38 #define ERROR_SUBSTR1 "ERROR" /* first failure ind. substring in A1 response */
39 #define ERROR_SUBSTR2 "\nError:" /* second such, this one from MobilDock */