use new sdbus++ camelcase
Change I17a8d7479556596a3cf252b3f4eae9c8df547189 will change
how sdbus++ generates names which start with an acronym.
Prepare for this by keying off the SDBUSPP_NEW_CAMELCASE
define to use the new format.
Changes:
dHCPEnabled -> dhcpEnabled
dNSEnabled -> dnsEnabled
iP -> ip
iPAddress -> ipAddress
iPv6AcceptRA -> ipv6AcceptRA
mACAddress -> macAddress
nICEnabled -> nicEnabled
nTPEnabled -> ntpEnabled
nTPServers -> ntpServers
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I35da2c4f8fc33262d6d096e499220419ebe4d00d
diff --git a/dhcp_configuration.cpp b/dhcp_configuration.cpp
index 7707461..690ae47 100644
--- a/dhcp_configuration.cpp
+++ b/dhcp_configuration.cpp
@@ -45,14 +45,14 @@
return name;
}
-bool Configuration::nTPEnabled(bool value)
+bool Configuration::ntpEnabled(bool value)
{
- if (value == nTPEnabled())
+ if (value == ntpEnabled())
{
return value;
}
- auto ntp = ConfigIntf::nTPEnabled(value);
+ auto ntp = ConfigIntf::ntpEnabled(value);
manager.writeToConfigurationFile();
manager.restartSystemdUnit(phosphor::network::networkdService);
manager.restartSystemdUnit(phosphor::network::timeSynchdService);
@@ -60,14 +60,14 @@
return ntp;
}
-bool Configuration::dNSEnabled(bool value)
+bool Configuration::dnsEnabled(bool value)
{
- if (value == dNSEnabled())
+ if (value == dnsEnabled())
{
return value;
}
- auto dns = ConfigIntf::dNSEnabled(value);
+ auto dns = ConfigIntf::dnsEnabled(value);
manager.writeToConfigurationFile();
manager.restartSystemdUnit(phosphor::network::networkdService);