MCPcopy Create free account
hub / github.com/USBGuard/usbguard / devicePolicyMethodToString

Method devicePolicyMethodToString

src/Daemon/Daemon.cpp:96–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected