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

Function arghelper_managed_interfaces

src/ovpn3cli/arghelpers.cpp:115–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113
114
115std::string arghelper_managed_interfaces()
116{
117 auto dbuscon = DBus::Connection::Create(DBus::BusType::SYSTEM);
118 auto sessmgr = SessionManager::Proxy::Manager::Create(dbuscon);
119
120 std::stringstream res;
121 for (const auto &dev : sessmgr->FetchManagedInterfaces())
122 {
123 if (dev.empty())
124 {
125 continue;
126 }
127 res << dev << " ";
128 }
129 return res.str();
130}
131
132
133std::string arghelper_config_names_sessions_dbus(DBus::Connection::Ptr dbuscon)

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected