| 84 | } |
| 85 | |
| 86 | long Service::ResolveInterface(FancyRefPtr<MessageInterface>& interface, const char* name){ |
| 87 | for(auto& _if : interfaces){ |
| 88 | if(strcmp(_if->name, name) == 0){ |
| 89 | interface = _if; |
| 90 | return 0; |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | Log::Warning("Interface %s not found!", name); |
| 95 | return 1; |
| 96 | } |
no test coverage detected