Move all NetworkManager D-Bus code to its own namespace.

This commit is contained in:
Vibhav Pant
2023-09-11 13:13:28 +05:30
parent 8c762ea9ab
commit 0d32fb37fb
17 changed files with 112 additions and 114 deletions
@@ -43,7 +43,7 @@ std::string WifiLanServerSocket::GetIPAddress() const {
for (auto &path : connection_paths) {
auto active_connection =
std::make_unique<NetworkManagerActiveConnection>(system_bus_, path);
std::make_unique<networkmanager::ActiveConnection>(system_bus_, path);
std::string conn_type;
try {
conn_type = active_connection->Type();
@@ -53,7 +53,7 @@ std::string WifiLanServerSocket::GetIPAddress() const {
}
if (conn_type == "802-11-wireless" || conn_type == "802-3-ethernet") {
auto ip4config_path = active_connection->Ip4Config();
NetworkManagerIP4Config ip4config(system_bus_, ip4config_path);
networkmanager::IP4Config ip4config(system_bus_, ip4config_path);
std::vector<std::map<std::string, sdbus::Variant>> address_data;
try {