* Calling this sends an event message to the TelCom System Queue, adding it to it's event queue * */
| 3997 | * |
| 3998 | */ |
| 3999 | void TelCom_SendSystemEvent(int event_num, int parm1, int parm2) { |
| 4000 | for (int i = 0; i < MAX_TELCOM_EVENTS; i++) { |
| 4001 | if (Telcom_system_queue[i].id == -1) { |
| 4002 | // add the event here |
| 4003 | Telcom_system_queue[i].id = event_num; |
| 4004 | Telcom_system_queue[i].parms[0] = parm1; |
| 4005 | Telcom_system_queue[i].parms[1] = parm2; |
| 4006 | return; |
| 4007 | } |
| 4008 | } |
| 4009 | |
| 4010 | mprintf(0, "Warning: TelCom System Event Queue Overflow\n"); |
| 4011 | } |
| 4012 | |
| 4013 | /* |
| 4014 | * Call this when handling the TelCom system events, returns true if there is an event waiting, it will then fill |
no outgoing calls
no test coverage detected