From 0004859f4ddc62ffd540da2ed9d8136beb233841 Mon Sep 17 00:00:00 2001 From: Andy CA6JAU Date: Sat, 4 Aug 2018 10:47:23 -0400 Subject: [PATCH] Add copyright message --- DMR2NXDN/DMR2NXDN.cpp | 10 ++++++++++ DMR2YSF/DMR2YSF.cpp | 10 ++++++++++ NXDN2DMR/NXDN2DMR.cpp | 10 ++++++++++ YSF2DMR/YSF2DMR.cpp | 10 ++++++++++ YSF2NXDN/YSF2NXDN.cpp | 10 ++++++++++ YSF2P25/YSF2P25.cpp | 10 ++++++++++ 6 files changed, 60 insertions(+) diff --git a/DMR2NXDN/DMR2NXDN.cpp b/DMR2NXDN/DMR2NXDN.cpp index 0aae745..7ae0996 100644 --- a/DMR2NXDN/DMR2NXDN.cpp +++ b/DMR2NXDN/DMR2NXDN.cpp @@ -38,6 +38,11 @@ const char* DEFAULT_INI_FILE = "DMR2NXDN.ini"; const char* DEFAULT_INI_FILE = "/etc/DMR2NXDN.ini"; #endif +const char* HEADER1 = "This software is for use on amateur radio networks only,"; +const char* HEADER2 = "it is to be used for educational purposes only. Its use on"; +const char* HEADER3 = "commercial networks is strictly prohibited."; +const char* HEADER4 = "Copyright(C) 2018 by CA6JAU, G4KLX and others"; + #include #include #include @@ -205,6 +210,11 @@ int CDMR2NXDN::run() } #endif + LogInfo(HEADER1); + LogInfo(HEADER2); + LogInfo(HEADER3); + LogInfo(HEADER4); + m_defsrcid = m_conf.getDMRId(); std::string gatewayAddress = m_conf.getDstAddress(); diff --git a/DMR2YSF/DMR2YSF.cpp b/DMR2YSF/DMR2YSF.cpp index 551334a..815096e 100644 --- a/DMR2YSF/DMR2YSF.cpp +++ b/DMR2YSF/DMR2YSF.cpp @@ -44,6 +44,11 @@ const char* DEFAULT_INI_FILE = "DMR2YSF.ini"; const char* DEFAULT_INI_FILE = "/etc/DMR2YSF.ini"; #endif +const char* HEADER1 = "This software is for use on amateur radio networks only,"; +const char* HEADER2 = "it is to be used for educational purposes only. Its use on"; +const char* HEADER3 = "commercial networks is strictly prohibited."; +const char* HEADER4 = "Copyright(C) 2018 by CA6JAU, G4KLX and others"; + #include #include #include @@ -222,6 +227,11 @@ int CDMR2YSF::run() m_tgUnlink = m_conf.getDMRNetworkTGUnlink(); std::string tgFile = m_conf.getDMRTGListFile(); + LogInfo(HEADER1); + LogInfo(HEADER2); + LogInfo(HEADER3); + LogInfo(HEADER4); + LogInfo("General Parameters"); LogInfo(" Default Dst TG: %u", m_dstid); LogInfo(" Unlink TG: %u", m_tgUnlink); diff --git a/NXDN2DMR/NXDN2DMR.cpp b/NXDN2DMR/NXDN2DMR.cpp index 1799168..6003add 100644 --- a/NXDN2DMR/NXDN2DMR.cpp +++ b/NXDN2DMR/NXDN2DMR.cpp @@ -43,6 +43,11 @@ const char* DEFAULT_INI_FILE = "NXDN2DMR.ini"; const char* DEFAULT_INI_FILE = "/etc/NXDN2DMR.ini"; #endif +const char* HEADER1 = "This software is for use on amateur radio networks only,"; +const char* HEADER2 = "it is to be used for educational purposes only. Its use on"; +const char* HEADER3 = "commercial networks is strictly prohibited."; +const char* HEADER4 = "Copyright(C) 2018 by CA6JAU, G4KLX and others"; + #include #include #include @@ -209,6 +214,11 @@ int CNXDN2DMR::run() } #endif + LogInfo(HEADER1); + LogInfo(HEADER2); + LogInfo(HEADER3); + LogInfo(HEADER4); + m_callsign = m_conf.getCallsign(); m_nxdnTG = m_conf.getTG(); diff --git a/YSF2DMR/YSF2DMR.cpp b/YSF2DMR/YSF2DMR.cpp index d925383..a2f7a46 100644 --- a/YSF2DMR/YSF2DMR.cpp +++ b/YSF2DMR/YSF2DMR.cpp @@ -46,6 +46,11 @@ const char* DEFAULT_INI_FILE = "YSF2DMR.ini"; const char* DEFAULT_INI_FILE = "/etc/YSF2DMR.ini"; #endif +const char* HEADER1 = "This software is for use on amateur radio networks only,"; +const char* HEADER2 = "it is to be used for educational purposes only. Its use on"; +const char* HEADER3 = "commercial networks is strictly prohibited."; +const char* HEADER4 = "Copyright(C) 2018 by CA6JAU, EA7EE, G4KLX and others"; + #include #include #include @@ -216,6 +221,11 @@ int CYSF2DMR::run() } #endif + LogInfo(HEADER1); + LogInfo(HEADER2); + LogInfo(HEADER3); + LogInfo(HEADER4); + m_callsign = m_conf.getCallsign(); m_suffix = m_conf.getSuffix(); diff --git a/YSF2NXDN/YSF2NXDN.cpp b/YSF2NXDN/YSF2NXDN.cpp index 8b97571..7f2f2b9 100644 --- a/YSF2NXDN/YSF2NXDN.cpp +++ b/YSF2NXDN/YSF2NXDN.cpp @@ -43,6 +43,11 @@ const char* DEFAULT_INI_FILE = "YSF2NXDN.ini"; const char* DEFAULT_INI_FILE = "/etc/YSF2NXDN.ini"; #endif +const char* HEADER1 = "This software is for use on amateur radio networks only,"; +const char* HEADER2 = "it is to be used for educational purposes only. Its use on"; +const char* HEADER3 = "commercial networks is strictly prohibited."; +const char* HEADER4 = "Copyright(C) 2018 by CA6JAU, G4KLX and others"; + #include #include #include @@ -207,6 +212,11 @@ int CYSF2NXDN::run() } #endif + LogInfo(HEADER1); + LogInfo(HEADER2); + LogInfo(HEADER3); + LogInfo(HEADER4); + m_callsign = m_conf.getCallsign(); m_suffix = m_conf.getSuffix(); m_defsrcid = m_conf.getNXDNId(); diff --git a/YSF2P25/YSF2P25.cpp b/YSF2P25/YSF2P25.cpp index b011431..50e7146 100644 --- a/YSF2P25/YSF2P25.cpp +++ b/YSF2P25/YSF2P25.cpp @@ -98,6 +98,11 @@ const char* DEFAULT_INI_FILE = "YSF2P25.ini"; const char* DEFAULT_INI_FILE = "/etc/YSF2P25.ini"; #endif +const char* HEADER1 = "This software is for use on amateur radio networks only,"; +const char* HEADER2 = "it is to be used for educational purposes only. Its use on"; +const char* HEADER3 = "commercial networks is strictly prohibited."; +const char* HEADER4 = "Copyright(C) 2018 by CA6JAU, G4KLX and others"; + #include #include #include @@ -259,6 +264,11 @@ int CYSF2P25::run() } #endif + LogInfo(HEADER1); + LogInfo(HEADER2); + LogInfo(HEADER3); + LogInfo(HEADER4); + m_callsign = m_conf.getCallsign(); m_defsrcid = m_conf.getP25Id(); m_dstid = m_conf.getP25DstId();