You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
834 B
59 lines
834 B
/* 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);
|