| 141 | inline void DispatchACPCommandOld(ACP_COMMAND_TYPE_INTERNAL cmdType, AcpState_Old *acpState, AcpCommand_Old Cmd) |
| 142 | { |
| 143 | if (cmdType == INTERNAL_ACP_COMMAND_TYPE_CONNECT) |
| 144 | { |
| 145 | g_LoganHeap._acpConnectCommandOld[Cmd.connect.instance - 1] = &Cmd; |
| 146 | printf("Registered main ACP command and message queues.\n"); |
| 147 | } |
| 148 | else if (cmdType == INTERNAL_ACP_COMMAND_TYPE_DISCONNECT) |
| 149 | { |
| 150 | printf("Received Internal ACP command (INTERNAL_ACP_COMMAND_TYPE_DISCONNECT)\n"); |
| 151 | } |
| 152 | else if (cmdType == INTERNAL_ACP_COMMAND_TYPE_REGISTER_CONTEXT_ARRAYS) |
| 153 | { |
| 154 | g_LoganHeap._acpContextArrays = Cmd.registerContextArrays; |
| 155 | printf("Registered ACP context arrays.\n"); |
| 156 | } |
| 157 | else if (cmdType == INTERNAL_ACP_COMMAND_TYPE_EVENT_LOG_INIT) |
| 158 | { |
| 159 | printf("Received Internal ACP command (INTERNAL_ACP_COMMAND_TYPE_EVENT_LOG_INIT)\n"); |
| 160 | } |
| 161 | else if (cmdType == INTERNAL_ACP_COMMAND_TYPE_EVENT_LOG_ENABLE) |
| 162 | { |
| 163 | printf("Received Internal ACP command (INTERNAL_ACP_COMMAND_TYPE_EVENT_LOG_ENABLE)\n"); |
| 164 | } |
| 165 | else if (cmdType == INTERNAL_ACP_COMMAND_TYPE_EVENT_LOG_DISABLE) |
| 166 | { |
| 167 | printf("Received Internal ACP command (INTERNAL_ACP_COMMAND_TYPE_EVENT_LOG_DISABLE)\n"); |
| 168 | } |
| 169 | else if (cmdType == INTERNAL_ACP_COMMAND_TYPE_TERMINATE) |
| 170 | { |
| 171 | printf("Received Internal ACP command (INTERNAL_ACP_COMMAND_TYPE_TERMINATE)\n"); |
| 172 | } |
| 173 | else |
| 174 | { |
| 175 | printf("Received unknown Internal ACP command of type 0x%x\n", cmdType); |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | template <typename T> |
| 180 | inline void DispatchClientACPCommand(ACP_COMMAND_TYPE cmdType, AcpState* acpState, T Cmd) |
| 181 | { |
| 182 | if (cmdType == ACP_COMMAND_TYPE_REGISTER_MESSAGE) |