.cvsignore files added, "-I !" assumed.
[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/mdsms" /* --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_MOBILDOCK 3600 /* --readtime default for MobilDock */
16 #define DEF_READTIME 5 /* --readtime default */
17 #define EXT_READTIME 10 /* --readtime multiply for long running commands */
18 #define DEF_CHARTIME 10 /* --chartime default
19                            (500ms per 80char=6.25ms recommended by Siemens */
20 #define DEF_CMDTIME 500 /* --cmdtime default */
21 #define WORD_NET "net" /* load as network logo */
22 #define WORD_GROUP "group" /* load as group graphics */
23 #define MAXCONFIG 4096 /* maximum allowed size of any configuration file */
24 #define MAXCFGARGS 256 /* maximum allowed number of arguments in cfg file */
25 #define MAXCFGLOOP 5 /* maximum number of recursive opens in cfg files */
26 #define MAXCFGNUM 20 /* total maximum number of cfgs read during one run */
27 #define DEVLOCK_PERIOD 2 /* seconds between attempts to obtain a lockfile */
28 #define DEVLOCK_MAXEMPTY 1 /* seconds to wait while lockfile is empty
29                               to prevent races during lock creation */
30 #define MAXSENDTIME 2 /* max. allowed number of seconds for sending one char */
31 #define LOCKREPORT 15 /* report to logfile if device lock took more than
32                          this parameter taken in seconds */
33 #define ADDR_NAT 0x81 /* PDU address type for non-'+' numbers */
34 #define ADDR_INT 0x91 /* PDU address type for numbers prefixed by '+' */
35 #define PDU_TYPE 0x11 /* first byte of PDU, SMS submit */
36 #define PDU_MR   0x00 /* default message reference, filled by Siemens A1 */
37 #define PDU_PID  0x00 /* PDU protocol identifier, SMS message type */
38 #define PDU_DCS  0x00 /* PDU Data Coding Scheme, 7-bit class-2 message */
39 #define PDU_VP   0xFF /* PDU Validity Period, maximum relative time */
40 #define MAXNUMLEN 20 /* maximum number of digits in GSM number */
41 #define MAXBODYLEN 160 /* maximum length of characters in SMS body */
42 #define BODYLOAD 200 /* number of bytes to read when body not on command line */
43 #define ERROR_SUBSTR1 "ERROR" /* first failure ind. substring in A1 response */
44 #define ERROR_SUBSTR2 "\nError:" /* second such, this one from MobilDock */
45 #define REPL_NULLCHAR ' ' /* char for replace when '\0' is read from device */
46 #define RECEIVE_TEST 0 /* debugging test of --receive */