1
0
mirror of https://github.com/ShaYmez/xlxd.git synced 2026-07-27 12:24:22 -04:00

version 1.1.0

added support for callsign black/white lists in gatekeeper
changed DCS timeout to 30 sec to support DMR - DSTAR bridge
This commit is contained in:
LX3JL
2015-12-30 18:04:27 +01:00
parent 4664798ec3
commit 22f489e440
10 changed files with 441 additions and 11 deletions
+16
View File
@@ -203,11 +203,27 @@ void CCallsign::GetSuffix(uint8 *buffer) const
////////////////////////////////////////////////////////////////////////////////////////
// compare
bool CCallsign::HasSameCallsign(const CCallsign &Callsign) const
{
return (::memcmp(m_Callsign, Callsign.m_Callsign, sizeof(m_Callsign)) == 0);
}
bool CCallsign::HasSameCallsignWithWidlcard(const CCallsign &callsign) const
{
bool same = true;
bool done = false;
for ( int i = 0; (i < sizeof(m_Callsign)) && same && !done; i++ )
{
if ( !(done = ((m_Callsign[i] == '*') || (callsign[i] == '*'))) )
{
same &= (m_Callsign[i] == callsign[i]);
}
}
return same;
}
bool CCallsign::HasSameModule(const CCallsign &Callsign) const
{
return (m_Module == Callsign.m_Module);