| 159 | |
| 160 | |
| 161 | void EventHandler::AddClient(EventClient* ec) { |
| 162 | if (ec->GetName().empty()) { |
| 163 | debugf(0, "EventClients must have valid names"); |
| 164 | return; |
| 165 | } |
| 166 | |
| 167 | if (!clientList.insert(ec)) { |
| 168 | debugf(0, "Duplicate EventClient name: %s\n"); |
| 169 | return; |
| 170 | } |
| 171 | clientSet.insert(ec); |
| 172 | } |
| 173 | |
| 174 | |
| 175 | void EventHandler::RemoveClient(EventClient* ec) { |