Skip to content

Commit

Permalink
iox-eclipse-iceoryx#495 initialize NodeName_t in posh_runtime correctly
Browse files Browse the repository at this point in the history
Signed-off-by: Dietrich Krönke <[email protected]>
  • Loading branch information
dkroenke committed Jan 21, 2021
1 parent 5defbdc commit 466ee77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions iceoryx_posh/include/iceoryx_posh/runtime/posh_runtime.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class PoshRuntime
PublisherPortUserType::MemberType_t*
getMiddlewarePublisher(const capro::ServiceDescription& service,
const popo::PublisherOptions& publisherOptions = popo::PublisherOptions(),
const NodeName_t& nodeName = "",
const NodeName_t& nodeName = NodeName_t(cxx::TruncateToCapacity, ""),
const PortConfigInfo& portConfigInfo = PortConfigInfo()) noexcept;

/// @brief request the RouDi daemon to create a subscriber port
Expand All @@ -109,15 +109,15 @@ class PoshRuntime
SubscriberPortUserType::MemberType_t*
getMiddlewareSubscriber(const capro::ServiceDescription& service,
const popo::SubscriberOptions& subscriberOptions = popo::SubscriberOptions(),
const NodeName_t& nodeName = "",
const NodeName_t& nodeName = NodeName_t(cxx::TruncateToCapacity, ""),
const PortConfigInfo& portConfigInfo = PortConfigInfo()) noexcept;

/// @brief request the RouDi daemon to create an interface port
/// @param[in] interface interface to create
/// @param[in] nodeName name of the node where the interface should belong to
/// @return pointer to a created interface port data
popo::InterfacePortData* getMiddlewareInterface(const capro::Interfaces interface,
const NodeName_t& nodeName = "") noexcept;
const NodeName_t& nodeName = NodeName_t(cxx::TruncateToCapacity, "")) noexcept;

/// @brief request the RouDi daemon to create an application port
/// @return pointer to a created application port data
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_posh/test/moduletests/test_roudi_process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class MqInterfaceUser_Mock : public iox::roudi::RouDiProcess
class RouDiProcess_test : public Test
{
public:
const iox::ProcessName_t processname = "TestRoudiProcess";
const iox::ProcessName_t processname = iox::ProcessName_t(iox::cxx::TruncateToCapacity, "TestRoudiProcess");
pid_t pid{200U};
iox::mepoo::MemoryManager* payloadMemoryManager{nullptr};
bool isMonitored = true;
Expand Down

0 comments on commit 466ee77

Please sign in to comment.