/* 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);