Many modifications for mdsms -> sms9110 branch transition.
[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/nokia9110" /* --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_BAUD 19200 /* --baud default */
14 #define DEF_MAXRETRY 3 /* --maxretry default */
15 #define DEF_READTIME 10 /* --readtime default */
16 #define DEF_CHARTIME 10 /* --chartime default
17                            (500ms per 80char=6.25ms recommended by Siemens */
18 #define DEF_CMDTIME 500 /* --cmdtime default */
19 #define WORD_NET "net" /* load as network logo */
20 #define WORD_GROUP "group" /* load as group graphics */
21 #define MAXCONFIG 4096 /* maximum allowed size of any configuration file */
22 #define MAXCFGARGS 256 /* maximum allowed number of arguments in cfg file */
23 #define MAXCFGLOOP 5 /* maximum number of recursive opens in cfg files */
24 #define MAXCFGNUM 20 /* total maximum number of cfgs read during one run */
25 #define DEVLOCK_PERIOD 2 /* seconds between attempts to obtain a lockfile */
26 #define DEVLOCK_MAXEMPTY 1 /* seconds to wait while lockfile is empty
27                               to prevent races during lock creation */
28 #define MAXSENDTIME 2 /* max. allowed number of seconds for sending one char */
29 #define LOCKREPORT 15 /* report to logfile if device lock took more than
30                          this parameter taken in seconds */
31 #define ADDR_NAT 0x81 /* PDU address type for non-'+' numbers */
32 #define ADDR_INT 0x91 /* PDU address type for numbers prefixed by '+' */
33 #define MAXNUMLEN 20 /* maximum number of digits in GSM number */
34 #define MAXBODYLEN 160 /* maximum length of characters in SMS body */
35 #define BODYLOAD 200 /* number of bytes to read when body not on command line */
36 #define ERROR_SUBSTR1 "ERROR" /* first failure ind. substring in A1 response */
37 #define ERROR_SUBSTR2 "\nError:" /* second such, this one from MobilDock */