diff --git a/include/fastdds/rtps/common/Locator.hpp b/include/fastdds/rtps/common/Locator.hpp index d688186a572..877ae1a2eb2 100644 --- a/include/fastdds/rtps/common/Locator.hpp +++ b/include/fastdds/rtps/common/Locator.hpp @@ -19,19 +19,18 @@ #ifndef FASTDDS_RTPS_COMMON__LOCATOR_HPP #define FASTDDS_RTPS_COMMON__LOCATOR_HPP -#include - -#include -#include - -#include - -#include -#include +#include #include #include #include -#include +#include +#include + +#include +#include +#include +#include +#include namespace eprosima { namespace fastdds { @@ -61,7 +60,7 @@ namespace rtps { /// TCP over IPv6 locator kind #define LOCATOR_KIND_TCPv6 8 /// Shared memory locator kind -#define LOCATOR_KIND_SHM 16 +#define LOCATOR_KIND_SHM 16 + FASTDDS_VERSION_MAJOR /** * @brief Class Locator_t, uniquely identifies a communication channel for a particular transport. diff --git a/src/cpp/rtps/transport/shared_mem/SharedMemGlobal.hpp b/src/cpp/rtps/transport/shared_mem/SharedMemGlobal.hpp index 8f93881d1bb..8a51d2f46b9 100644 --- a/src/cpp/rtps/transport/shared_mem/SharedMemGlobal.hpp +++ b/src/cpp/rtps/transport/shared_mem/SharedMemGlobal.hpp @@ -16,18 +16,20 @@ #define _FASTDDS_SHAREDMEM_GLOBAL_H_ #include -#include -#include #include +#include #include +#include -#include +#include +#include + +#include #include #include +#include #include -#include - #define THREADID "(ID:" << std::this_thread::get_id() << ") " namespace eprosima { @@ -92,6 +94,8 @@ class SharedMemGlobal typedef MultiProducerConsumerRingBuffer::Cell PortCell; static const uint32_t CURRENT_ABI_VERSION = 5; + static_assert(CURRENT_ABI_VERSION == (2 + FASTDDS_VERSION_MAJOR), "ABI is not correct"); + static_assert(LOCATOR_KIND_SHM == (16 + FASTDDS_VERSION_MAJOR), "LOCATOR_KIND_SHM is not correct"); struct PortNode { diff --git a/versions.md b/versions.md index 0303c332a65..7a0fa4e800d 100644 --- a/versions.md +++ b/versions.md @@ -113,6 +113,7 @@ Forthcoming * DDS implementation of `eprosima::fastdds::Time_t` moved to `eprosima::fastdds::dds::Time_t`. * `TopicDataType::auto_fill_type_information` has been removed in favor of `fastdds.type_propagation` participant property. * Add new custom pid PID_PRODUCT_VERSION. +* SHM locator kind is now linked to Fast DDS' major version. Version 2.14.0 --------------