Ref T723 [xswiftbus] Expose configuration to enable/disable TCAS traffic

This commit is contained in:
Mat Sutcliffe
2019-12-27 21:40:15 +00:00
parent 8d204cded1
commit 0f6b7d910e
6 changed files with 31 additions and 0 deletions

View File

@@ -60,6 +60,7 @@ namespace XSwiftBus
else if (stringCompareCaseInsensitive(key, "dbusAddress")) { valid = parseDBusAddress(value); }
else if (stringCompareCaseInsensitive(key, "dbusPort")) { valid = parseDBusPort(value); }
else if (stringCompareCaseInsensitive(key, "debug")) { valid = parseDebug(value); }
else if (stringCompareCaseInsensitive(key, "tcasTraffic")) { valid = parseTcas(value); }
else
{
WARNING_LOG("xswiftbus.conf line " + std::to_string(lineNo) + ": Unknown variable " + value + "!");
@@ -129,6 +130,12 @@ namespace XSwiftBus
return true;
}
bool CConfig::parseTcas(const std::string &value)
{
m_tcas = stringCompareCaseInsensitive(value, "on");
return true;
}
std::string CConfig::dbusModeToString(DBusMode mode)
{
switch (mode)