| 149 | |
| 150 | |
| 151 | void 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 | |
| 170 | void SrvHandler::method_fetch_managed_interf(Object::Method::Arguments::Ptr args) |