MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3-linux / method_fetch_managed_interf

Method method_fetch_managed_interf

src/sessionmgr/sessionmgr-service.cpp:170–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168
169
170void SrvHandler::method_fetch_managed_interf(Object::Method::Arguments::Ptr args)
171{
172 std::vector<std::string> devices{};
173
174 auto search_filter = [](std::shared_ptr<Session> sessobj)
175 {
176 // We want to list interfaces for all available sessions; no filtering
177 return true;
178 };
179 for (const auto &obj : helper_retrieve_sessions(args->GetCallerBusName(),
180 search_filter))
181 {
182 devices.push_back(obj->GetDeviceName());
183 }
184 args->SetMethodReturn(glib2::Value::CreateTupleWrapped(devices));
185}
186
187
188void SrvHandler::method_lookup_config(Object::Method::Arguments::Ptr args)

Callers 1

SrvHandlerMethod · 0.95

Calls 1

GetDeviceNameMethod · 0.45

Tested by

no test coverage detected