| 523 | } |
| 524 | |
| 525 | int InputMessenger::FindProtocolIndex(const char* name) const { |
| 526 | for (size_t i = 0; i < _capacity; ++i) { |
| 527 | if (_handlers[i].parse != NULL |
| 528 | && strcmp(name, _handlers[i].name) == 0) { |
| 529 | return i; |
| 530 | } |
| 531 | } |
| 532 | return -1; |
| 533 | } |
| 534 | |
| 535 | int InputMessenger::FindProtocolIndex(ProtocolType type) const { |
| 536 | const Protocol* proto = FindProtocol(type); |
no test coverage detected