| 128 | } |
| 129 | |
| 130 | void Kernel::InitEvents() |
| 131 | { |
| 132 | // Register for init-soar events |
| 133 | RegisterForAgentEvent(smlEVENT_AFTER_AGENT_REINITIALIZED, &InitSoarHandler, NULL) ; |
| 134 | |
| 135 | // Register for load-library events (local client only) |
| 136 | if (!this->GetConnection()->IsRemoteConnection()) |
| 137 | { |
| 138 | RegisterForStringEvent(smlEVENT_LOAD_LIBRARY, &LoadLibraryHandler, NULL); |
| 139 | RegisterForStringEvent(smlEVENT_CLI_EXTENSION_MESSAGE, &CliExtensionMessageHandler, NULL); |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | /************************************************************* |
| 144 | * @brief True if our connection to the kernel has been closed. |
no test coverage detected