| 102 | |
| 103 | inline void DispatchACPCommand(ACP_COMMAND_TYPE_INTERNAL cmdType, AcpState *acpState, AcpCommand Cmd) |
| 104 | { |
| 105 | if (cmdType == INTERNAL_ACP_COMMAND_TYPE_CONNECT) |
| 106 | { |
| 107 | g_LoganHeap._acpConnectCommand[Cmd.connect.index] = &Cmd; |
| 108 | printf("Registered main ACP command and message queues.\n"); |
| 109 | } |
| 110 | else if (cmdType == INTERNAL_ACP_COMMAND_TYPE_DISCONNECT) |
| 111 | { |
| 112 | printf("Received Internal ACP command (INTERNAL_ACP_COMMAND_TYPE_DISCONNECT)\n"); |
| 113 | } |
| 114 | else if (cmdType == INTERNAL_ACP_COMMAND_TYPE_REGISTER_CONTEXT_ARRAYS) |
| 115 | { |
| 116 | g_LoganHeap._acpContextArrays = Cmd.registerContextArrays; |
| 117 | printf("Registered ACP context arrays.\n"); |
| 118 | } |
| 119 | else if (cmdType == INTERNAL_ACP_COMMAND_TYPE_EVENT_LOG_INIT) |
| 120 | { |
| 121 | printf("Received Internal ACP command (INTERNAL_ACP_COMMAND_TYPE_EVENT_LOG_INIT)\n"); |
| 122 | } |
| 123 | else if (cmdType == INTERNAL_ACP_COMMAND_TYPE_EVENT_LOG_ENABLE) |
| 124 | { |
| 125 | printf("Received Internal ACP command (INTERNAL_ACP_COMMAND_TYPE_EVENT_LOG_ENABLE)\n"); |
| 126 | } |
| 127 | else if (cmdType == INTERNAL_ACP_COMMAND_TYPE_EVENT_LOG_DISABLE) |
| 128 | { |
| 129 | printf("Received Internal ACP command (INTERNAL_ACP_COMMAND_TYPE_EVENT_LOG_DISABLE)\n"); |
| 130 | } |
| 131 | else if (cmdType == INTERNAL_ACP_COMMAND_TYPE_TERMINATE) |
| 132 | { |
| 133 | printf("Received Internal ACP command (INTERNAL_ACP_COMMAND_TYPE_TERMINATE)\n"); |
| 134 | } |
| 135 | else |
| 136 | { |
| 137 | printf("Received unknown Internal ACP command of type 0x%x\n", cmdType); |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | inline void DispatchACPCommandOld(ACP_COMMAND_TYPE_INTERNAL cmdType, AcpState_Old *acpState, AcpCommand_Old Cmd) |
| 142 | { |
| 143 | if (cmdType == INTERNAL_ACP_COMMAND_TYPE_CONNECT) |