mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 22:45:31 +00:00
Add daemonisation under Linux and other enhancements (from Simon G7RZU)
This commit is contained in:
parent
0f2e3bb16a
commit
91aba16d98
4 changed files with 58 additions and 8 deletions
8
Conf.cpp
8
Conf.cpp
|
|
@ -51,6 +51,7 @@ m_timeout(120U),
|
|||
m_duplex(true),
|
||||
m_modeHang(10U),
|
||||
m_display(),
|
||||
m_daemon(false),
|
||||
m_rxFrequency(0U),
|
||||
m_txFrequency(0U),
|
||||
m_power(0U),
|
||||
|
|
@ -191,6 +192,8 @@ bool CConf::read()
|
|||
m_modeHang = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "Display") == 0)
|
||||
m_display = value;
|
||||
else if (::strcmp(key, "Daemon") == 0)
|
||||
m_daemon = ::atoi(value) == 1;
|
||||
} else if (section == SECTION_INFO) {
|
||||
if (::strcmp(key, "TXFrequency") == 0)
|
||||
m_txFrequency = (unsigned int)::atoi(value);
|
||||
|
|
@ -400,6 +403,11 @@ std::string CConf::getDisplay() const
|
|||
return m_display;
|
||||
}
|
||||
|
||||
bool CConf::getDaemon() const
|
||||
{
|
||||
return m_daemon;
|
||||
}
|
||||
|
||||
unsigned int CConf::getRxFrequency() const
|
||||
{
|
||||
return m_rxFrequency;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue