From bd1653d86ab9919a672cf435c1f04bde408be01a Mon Sep 17 00:00:00 2001 From: Alban VERGNAUD Date: Tue, 25 Feb 2025 08:49:19 +0100 Subject: [PATCH] Proposition to integrate HERMES_VERSION define in ServiceDescription message and SupervisoryServiceDescription message --- src/include/Hermes.h | 2 +- src/include/HermesData.hpp | 4 ++-- test/BoostTestHermes/CApiTest.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/include/Hermes.h b/src/include/Hermes.h index 10ea635..559e31e 100644 --- a/src/include/Hermes.h +++ b/src/include/Hermes.h @@ -31,7 +31,7 @@ limitations under the License. # define HERMESPROTOCOL_API #endif //_WINDOWS -#define HERMES_VERSION "1.0" +#define HERMES_VERSION "1.6" #include "HermesData.h" diff --git a/src/include/HermesData.hpp b/src/include/HermesData.hpp index 442bdba..5d3ec65 100644 --- a/src/include/HermesData.hpp +++ b/src/include/HermesData.hpp @@ -495,7 +495,7 @@ struct ServiceDescriptionData std::string m_machineId; unsigned m_laneId{0}; Optional m_optionalInterfaceId; - std::string m_version{"1.5"}; + std::string m_version{HERMES_VERSION}; SupportedFeatures m_supportedFeatures; ServiceDescriptionData() = default; @@ -1318,7 +1318,7 @@ struct SupervisoryFeatures struct SupervisoryServiceDescriptionData { std::string m_systemId; - std::string m_version{"1.5"}; + std::string m_version{HERMES_VERSION}; SupervisoryFeatures m_supportedFeatures; SupervisoryServiceDescriptionData() = default; diff --git a/test/BoostTestHermes/CApiTest.cpp b/test/BoostTestHermes/CApiTest.cpp index 6c4d490..87bbc1c 100644 --- a/test/BoostTestHermes/CApiTest.cpp +++ b/test/BoostTestHermes/CApiTest.cpp @@ -93,7 +93,7 @@ namespace }; - std::string sHermesVersion = "1.0"; + std::string sHermesVersion = HERMES_VERSION; std::string sLocalHost = "localhost"; Mutex sTraceMutex; const unsigned cCHECK_ALIVE_PERIOD = 60U;