Skip to content

Commit

Permalink
[core] remove eSendMode and STLayer as configuration is now handled d…
Browse files Browse the repository at this point in the history
…ifferently.
  • Loading branch information
KerstinKeller committed Dec 6, 2024
1 parent c0eadc2 commit 9aca121
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
24 changes: 1 addition & 23 deletions ecal/core/include/ecal/ecal_tlayer.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* ========================= eCAL LICENSE =================================
*
* Copyright (C) 2016 - 2019 Continental Corporation
* Copyright (C) 2016 - 2024 Continental Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -41,27 +41,5 @@ namespace eCAL
tlayer_tcp = 5,
tlayer_all = 255
};

/**
* @brief eCAL transport layer modes.
**/
enum eSendMode
{
smode_none = -1,
smode_off = 0,
smode_on,
smode_auto
};

// TODO: Do weed need this ?
/**
* @brief eCAL transport layer state struct.
**/
struct ECAL_API STLayer
{
eSendMode sm_udp_mc{smode_none}; //!< udp multicast
eSendMode sm_shm{smode_none}; //!< shared memory
eSendMode sm_tcp{smode_none}; //!< tcp
};
}
}
2 changes: 1 addition & 1 deletion ecal/tests/cpp/config_test/src/config_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ TEST(core_cpp_config /*unused*/, user_config_passing /*unused*/)
// Test monitoring console log assignment, default is (log_level_info | log_level_warning | log_level_error | log_level_fatal)
EXPECT_EQ(mon_log_filter_con, eCAL::GetConfiguration().logging.sinks.console.filter_log_con);

// Test publisher sendmode assignment, default is eCAL::TLayer::eSendMode::smode_auto
// Test publisher sendmode assignment
EXPECT_EQ(pub_use_shm, eCAL::GetConfiguration().publisher.layer.shm.enable);

// Test registration option assignment, default timeout is 10000U and default refresh is 1000U
Expand Down

0 comments on commit 9aca121

Please sign in to comment.