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

Method method_fetch_avail_sessions

src/sessionmgr/sessionmgr-service.cpp:151–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149
150
151void SrvHandler::method_fetch_avail_sessions(Object::Method::Arguments::Ptr args)
152{
153 std::vector<DBus::Object::Path> session_paths{};
154
155 auto no_filter = [](std::shared_ptr<Session> obj)
156 {
157 // we want all objects; nothing to filter out
158 return true;
159 };
160
161 for (const auto &obj : helper_retrieve_sessions(args->GetCallerBusName(),
162 no_filter))
163 {
164 session_paths.push_back(obj->GetPath());
165 }
166 args->SetMethodReturn(glib2::Value::CreateTupleWrapped(session_paths));
167}
168
169
170void SrvHandler::method_fetch_managed_interf(Object::Method::Arguments::Ptr args)

Callers 1

SrvHandlerMethod · 0.95

Calls 1

GetPathMethod · 0.45

Tested by

no test coverage detected