-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsched.h
107 lines (99 loc) · 4.67 KB
/
sched.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
// LoraBBS Version 2.41 Free Edition
// Copyright (C) 1987-98 Marco Maccaferri
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
/* Definitions for day of the week */
#define DAY_SUNDAY 0x01
#define DAY_MONDAY 0x02
#define DAY_TUESDAY 0x04
#define DAY_WEDNESDAY 0x08
#define DAY_THURSDAY 0x10
#define DAY_FRIDAY 0x20
#define DAY_SATURDAY 0x40
#define DAY_UNUSED 0x80
#define DAY_WEEK (DAY_MONDAY|DAY_TUESDAY|DAY_WEDNESDAY|DAY_THURSDAY|DAY_FRIDAY)
#define DAY_WKEND (DAY_SUNDAY|DAY_SATURDAY)
/* Definitions for matrix behavior */
#define MAT_CM 0x0001
#define MAT_DYNAM 0x0002
#define MAT_BBS 0x0004
#define MAT_NOREQ 0x0008
#define MAT_OUTONLY 0x0010
#define MAT_NOOUT 0x0020
#define MAT_FORCED 0x0040
#define MAT_LOCAL 0x0080
#define MAT_SKIP 0x0100
#define MAT_NOMAIL24 0x0200
#define MAT_NOOUTREQ 0x0400
#define MAT_NOCM 0x0800
#define MAT_RESERV 0x1000
#define MAT_RESYNC 0x2000
#define MAT_RESERVED2 0x4000
#define MAT_RESERVED3 0x8000
/* Definitions for echomail behavior */
#define ECHO_EXPORT 0x0001
#define ECHO_IMPORT 0x0002
#define ECHO_PACK 0x0004
#define ECHO_NORMAL 0x0008
#define ECHO_KNOW 0x0010
#define ECHO_PROT 0x0020
#define ECHO_STARTIMPORT 0x0040
#define ECHO_STARTEXPORT 0x0080
#define ECHO_FORCECALL 0x0100
#define ECHO_RESERVED4 0x0200
#define ECHO_RESERVED5 0x0400
#define ECHO_RESERVED6 0x0800
#define ECHO_RESERVED7 0x1000
#define ECHO_RESERVED8 0x2000
#define ECHO_RESERVED9 0x4000
#define ECHO_RESERVED10 0x8000
/*********************************************************************
* If either of these structures are changed, don't forget to change *
* the BinkSched string in sched.c, as well as the routines that read *
* and write the schedule file (read_sched, write_sched)!!! *
*********************************************************************/
typedef struct _event
{
short days; /* Bit field for which days
* to execute */
short minute; /* Minutes after midnight to
* start event */
short length; /* Number of minutes event
* runs */
short errlevel[9]; /* Errorlevel exits */
short last_ran; /* Day of month last ran */
short behavior; /* Behavior mask */
short echomail; /* Echomail behavior mask */
short wait_time; /* Average number of seconds
* to wait between dials */
short with_connect; /* Number of calls to make
* with carrier */
short no_connect; /* Number of calls to make
* without carrier */
short node_cost; /* Maximum cost node to call
* during this event */
char cmd[32]; /* Chars to append to
* packer, aftermail and
* cleanup */
char month; /* Month when to do it */
char day; /* Day of month to do it */
char err_extent[6][4]; /* 3 byte extensions for errorlevels 4-9 */
short extra[1]; /* Extra space for later */
short res_zone;
short res_net;
short res_node;
short res_point;
char route_tag[16];
} EVENT;