MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / ResolveInterface

Method ResolveInterface

Kernel/src/objects/service.cpp:86–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86long 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}

Callers 1

SysInterfaceConnectFunction · 0.80

Calls 2

strcmpFunction · 0.85
WarningFunction · 0.85

Tested by

no test coverage detected