| 227 | } |
| 228 | |
| 229 | std::vector<std::string> Device::getProfiles() const { |
| 230 | std::shared_lock lock(_profile_mutex); |
| 231 | |
| 232 | std::vector<std::string> ret; |
| 233 | for (auto& profile : _config.profiles) { |
| 234 | ret.push_back(profile.first); |
| 235 | } |
| 236 | |
| 237 | return ret; |
| 238 | } |
| 239 | |
| 240 | void Device::setProfile(const std::string& profile) { |
| 241 | std::unique_lock lock(_profile_mutex); |
nothing calls this directly
no outgoing calls
no test coverage detected