Add explicit FCS rooms support

This commit is contained in:
Andy CA6JAU
2018-09-02 20:35:15 -03:00
parent 8dc36e0e8c
commit 9faeae91b9
8 changed files with 343 additions and 31 deletions
+8
View File
@@ -42,6 +42,7 @@ m_dstAddress(),
m_dstPort(0U),
m_localAddress(),
m_localPort(0U),
m_fcsFile(),
m_daemon(false),
m_dmrId(0U),
m_dmrRptAddress(),
@@ -124,6 +125,8 @@ bool CConf::read()
m_localAddress = value;
else if (::strcmp(key, "LocalPort") == 0)
m_localPort = (unsigned int)::atoi(value);
else if (::strcmp(key, "FCSRooms") == 0)
m_fcsFile = value;
else if (::strcmp(key, "Daemon") == 0)
m_daemon = ::atoi(value) == 1;
} else if (section == SECTION_DMR_NETWORK) {
@@ -192,6 +195,11 @@ unsigned int CConf::getLocalPort() const
return m_localPort;
}
std::string CConf::getFCSFile() const
{
return m_fcsFile;
}
bool CConf::getDaemon() const
{
return m_daemon;