Terminal.h
834 Bytes
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
/* Terminal struct header file. */
#include "Msg.h"
#define UNKNOWN 0
#define OUT_OF_SERVICE 1
#define INSERVICE 2
/* Terminal struct */
typedef struct
{
/*...*/
int terminalId;
int terminalType;
int terminalStatus;
} Terminal;
/*
Prototypes for Terminal structure related functions. Helper
functions needed by these functions are marked static are not
included here.
*/
void Terminal_Activate(Terminal *pTerm, const TerminalCreateMsg *pMsg);
void Terminal_Deactivate(Terminal *pTerm, const TerminalDeleteMsg *pMsg);
int Terminal_HandleRunDiagnostics(Terminal *pTerm, const RunDiagnosticsMsg *pMsg);
int Terminal_HandleOutOfService(Terminal *pTerm);
int Terminal_HandleInService(Terminal *pTerm);
void Terminal_Construct(Terminal *pTerm);
void Terminal_Destroy(Terminal *pTerm);