From 8e3b876628401b3e2b79e05746f0be1686ee21aa Mon Sep 17 00:00:00 2001 From: Geoffrey Merck Date: Thu, 23 Dec 2021 18:09:47 +0100 Subject: [PATCH] Move structs to Defs.h --- DStarGatewayConfig.h | 21 --------------------- Defs.h | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/DStarGatewayConfig.h b/DStarGatewayConfig.h index ef5a38e..2a3de4f 100644 --- a/DStarGatewayConfig.h +++ b/DStarGatewayConfig.h @@ -24,27 +24,6 @@ using namespace libconfig; -typedef struct { - std::string callsign; - std::string address; - unsigned int port; -} TGateway; - -typedef struct { - std::string band; - std::string callsign; - std::string reflector; - std::string address; - unsigned int port; -} TRepeater; - -typedef struct { - std::string hostname; - std::string username; - std::string password; - bool isQuadNet; -} TircDDB; - class CDStarGatewayConfig { public: CDStarGatewayConfig(const std::string &pathname); diff --git a/Defs.h b/Defs.h index af03af6..5978de5 100644 --- a/Defs.h +++ b/Defs.h @@ -124,3 +124,24 @@ enum GATEWAY_TYPE { }; const unsigned int TIME_PER_TIC_MS = 5U; + +typedef struct { + std::string callsign; + std::string address; + unsigned int port; +} TGateway; + +typedef struct { + std::string band; + std::string callsign; + std::string reflector; + std::string address; + unsigned int port; +} TRepeater; + +typedef struct { + std::string hostname; + std::string username; + std::string password; + bool isQuadNet; +} TircDDB; \ No newline at end of file