| 94 | } |
| 95 | |
| 96 | const std::string Daemon::devicePolicyMethodToString(DevicePolicyMethod policy) |
| 97 | { |
| 98 | for (auto device_policy_method_string : device_policy_method_strings) { |
| 99 | if (device_policy_method_string.second == policy) { |
| 100 | return device_policy_method_string.first; |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | throw USBGUARD_BUG("Invalid device policy method value"); |
| 105 | } |
| 106 | |
| 107 | Daemon::Daemon() |
| 108 | : _config(G_config_known_names), |
nothing calls this directly
no outgoing calls
no test coverage detected