Skip to content

Commit

Permalink
Merge pull request #2064 from eclipse-iceoryx/iox-1391-move-dust-head…
Browse files Browse the repository at this point in the history
…er-from-legacy-path-to-module-path-part-3

iox-#1391 Move dust header from legacy path to module path part 3
  • Loading branch information
elBoberido authored Nov 15, 2023
2 parents 421cb50 + 6f6a714 commit 4144844
Show file tree
Hide file tree
Showing 63 changed files with 181 additions and 162 deletions.
1 change: 1 addition & 0 deletions .lycheeignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
https://github.com/eclipse-iceoryx/iceoryx/compare/vx.x.x...vx.x.x
https://github.com/eclipse-iceoryx/iceoryx/tree/vx.x.x
https://www.misra.org.uk/

[email protected]
6 changes: 3 additions & 3 deletions doc/website/release-notes/iceoryx-unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -1000,23 +1000,23 @@
#include "iceoryx_hoofs/posix_wrapper/internal/message_queue.hpp"

// after
#include "iceoryx_dust/posix_wrapper/message_queue.hpp"
#include "iox/posix/message_queue.hpp"
```

```cpp
// before
#include "iceoryx_hoofs/posix_wrapper/named_pipe.hpp"

// after
#include "iceoryx_dust/posix_wrapper/named_pipe.hpp"
#include "iox/posix/named_pipe.hpp"
```

```cpp
// before
#include "iceoryx_hoofs/posix_wrapper/signal_watcher.hpp"

// after
#include "iceoryx_dust/posix_wrapper/signal_watcher.hpp"
#include "iox/posix/signal_watcher.hpp"
```

```cpp
Expand Down
6 changes: 3 additions & 3 deletions iceoryx_binding_c/source/c_runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ extern "C" {

void iox_runtime_init(const char* const name)
{
IOX_EXPECTS(name != nullptr && "Runtime name is a nullptr!");
IOX_EXPECTS(strnlen(name, iox::MAX_RUNTIME_NAME_LENGTH + 1) <= MAX_RUNTIME_NAME_LENGTH
&& "Runtime name has more than 100 characters!");
IOX_EXPECTS_WITH_MSG(name != nullptr, "Runtime name is a nullptr!");
IOX_EXPECTS_WITH_MSG(strnlen(name, iox::MAX_RUNTIME_NAME_LENGTH + 1) <= MAX_RUNTIME_NAME_LENGTH,
"Runtime name has more than 100 characters!");

PoshRuntime::initRuntime(RuntimeName_t(iox::TruncateToCapacity, name));
}
Expand Down
12 changes: 7 additions & 5 deletions iceoryx_dust/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ load("//bazel:configure_file.bzl", "configure_file")
configure_file(
name = "iceoryx_dust_deployment_hpp",
src = "cmake/iceoryx_dust_deployment.hpp.in",
out = "include/iox/iceoryx_dust_deployment.hpp",
out = "generated/include/iox/iceoryx_dust_deployment.hpp",
config = {
"IOX_MAX_NAMED_PIPE_MESSAGE_SIZE": "4096",
"IOX_MAX_NAMED_PIPE_NUMBER_OF_MESSAGES": "10",
Expand All @@ -32,18 +32,20 @@ cc_library(
srcs = glob([
"cli/source/**/*.cpp",
"filesystem/source/**/*.cpp",
"source/**/*.cpp",
"source/**/*.hpp",
"posix/ipc/source/**/*.cpp",
"posix/sync/source/**/*.cpp",
]),
hdrs = glob(["include/**"]) + glob(["cli/**"]) + glob(["container/**"]) + glob(["filesystem/**"]) + glob(["memory/**"]) + glob(["utility/**"]) + glob(["vocabulary/**"]) + [
hdrs = glob(["cli/**"]) + glob(["container/**"]) + glob(["filesystem/**"]) + glob(["memory/**"]) + glob(["utility/**"]) + glob(["posix/ipc/**"]) + glob(["posix/sync/**"]) + glob(["vocabulary/**"]) + [
":iceoryx_dust_deployment_hpp",
],
includes = [
"cli/include/",
"container/include/",
"filesystem/include/",
"include",
"generated/include/",
"memory/include/",
"posix/ipc/include/",
"posix/sync/include/",
"utility/include/",
"vocabulary/include/",
],
Expand Down
16 changes: 9 additions & 7 deletions iceoryx_dust/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,22 @@ iox_add_library(
PRIVATE_LIBS ${ICEORYX_SANITIZER_FLAGS}
PRIVATE_LIBS_LINUX ${CODE_COVERAGE_LIBS}
PUBLIC_LIBS iceoryx_hoofs::iceoryx_hoofs
BUILD_INTERFACE ${PROJECT_SOURCE_DIR}/include
${PROJECT_SOURCE_DIR}/cli/include
BUILD_INTERFACE ${PROJECT_SOURCE_DIR}/cli/include
${PROJECT_SOURCE_DIR}/container/include
${PROJECT_SOURCE_DIR}/filesystem/include
${PROJECT_SOURCE_DIR}/memory/include
${PROJECT_SOURCE_DIR}/posix/ipc/include
${PROJECT_SOURCE_DIR}/posix/sync/include
${PROJECT_SOURCE_DIR}/utility/include
${PROJECT_SOURCE_DIR}/vocabulary/include
${CMAKE_BINARY_DIR}/generated/iceoryx_dust/include
INSTALL_INTERFACE include/${PREFIX}
EXPORT_INCLUDE_DIRS include/
cli/include/
EXPORT_INCLUDE_DIRS cli/include/
container/include/
filesystem/include/
memory/include/
posix/ipc/include/
posix/sync/include/
utility/include/
vocabulary/include/
FILES
Expand All @@ -69,9 +71,9 @@ iox_add_library(
cli/source/option_definition.cpp
cli/source/option_manager.cpp
filesystem/source/file_reader.cpp
source/posix_wrapper/named_pipe.cpp
source/posix_wrapper/signal_watcher.cpp
source/posix_wrapper/message_queue.cpp
posix/ipc/source/message_queue.cpp
posix/ipc/source/named_pipe.cpp
posix/sync/source/signal_watcher.cpp
)

configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/iceoryx_dust_deployment.hpp.in"
Expand Down
10 changes: 5 additions & 5 deletions iceoryx_dust/container/include/iox/detail/forward_list.inl
Original file line number Diff line number Diff line change
Expand Up @@ -329,15 +329,15 @@ template <typename T, uint64_t Capacity>
inline T& forward_list<T, Capacity>::front() noexcept
{
auto iter = begin();
IOX_EXPECTS(isValidElementIdx(iter.m_iterListNodeIdx) && "Invalid list element");
IOX_EXPECTS_WITH_MSG(isValidElementIdx(iter.m_iterListNodeIdx), "Invalid list element");
return *iter;
}

template <typename T, uint64_t Capacity>
inline const T& forward_list<T, Capacity>::front() const noexcept
{
auto citer = cbegin();
IOX_EXPECTS(isValidElementIdx(citer.m_iterListNodeIdx) && "Invalid list element");
IOX_EXPECTS_WITH_MSG(isValidElementIdx(citer.m_iterListNodeIdx), "Invalid list element");
return *citer;
}

Expand Down Expand Up @@ -556,7 +556,7 @@ inline void forward_list<T, Capacity>::setNextIdx(const size_type idx, const siz
template <typename T, uint64_t Capacity>
inline const T* forward_list<T, Capacity>::getDataPtrFromIdx(const size_type idx) const noexcept
{
IOX_EXPECTS(isValidElementIdx(idx) && "Invalid list element");
IOX_EXPECTS_WITH_MSG(isValidElementIdx(idx), "Invalid list element");

// safe since m_data entries are aligned to T
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast)
Expand Down Expand Up @@ -597,14 +597,14 @@ inline bool forward_list<T, Capacity>::isInvalidIterator(const const_iterator& i
{
// iterator's member m_iterListNodeIdx and nextIndex are not checked here to be <= END_INDEX as this
// should (can) never happen though normal list operations.
IOX_EXPECTS(!isInvalidElement(iter.m_iterListNodeIdx) && "invalidated iterator");
IOX_EXPECTS_WITH_MSG(!isInvalidElement(iter.m_iterListNodeIdx), "invalidated iterator");
return false;
}

template <typename T, uint64_t Capacity>
inline bool forward_list<T, Capacity>::isInvalidIterOrDifferentLists(const const_iterator& iter) const noexcept
{
IOX_EXPECTS((this == iter.m_list) && "iterator of other list can't be used");
IOX_EXPECTS_WITH_MSG((this == iter.m_list), "iterator of other list can't be used");
return isInvalidIterator(iter);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
// limitations under the License.
//
// SPDX-License-Identifier: Apache-2.0
#ifndef IOX_DUST_POSIX_WRAPPER_MESSAGE_QUEUE_HPP
#define IOX_DUST_POSIX_WRAPPER_MESSAGE_QUEUE_HPP

#ifndef IOX_DUST_POSIX_IPC_MESSAGE_QUEUE_HPP
#define IOX_DUST_POSIX_IPC_MESSAGE_QUEUE_HPP

#include "iceoryx_hoofs/internal/posix_wrapper/ipc_channel.hpp"
#include "iceoryx_platform/fcntl.hpp"
Expand Down Expand Up @@ -149,4 +150,4 @@ class MessageQueueBuilder
} // namespace posix
} // namespace iox

#endif // IOX_DUST_POSIX_WRAPPER_MESSAGE_QUEUE_HPP
#endif // IOX_DUST_POSIX_IPC_MESSAGE_QUEUE_HPP
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
// limitations under the License.
//
// SPDX-License-Identifier: Apache-2.0
#ifndef IOX_DUST_POSIX_WRAPPER_NAMED_PIPE_HPP
#define IOX_DUST_POSIX_WRAPPER_NAMED_PIPE_HPP

#ifndef IOX_DUST_POSIX_IPC_NAMED_PIPE_HPP
#define IOX_DUST_POSIX_IPC_NAMED_PIPE_HPP

#include "iceoryx_hoofs/concurrent/lockfree_queue.hpp"
#include "iceoryx_hoofs/internal/posix_wrapper/ipc_channel.hpp"
Expand Down Expand Up @@ -177,4 +178,4 @@ class NamedPipeBuilder
} // namespace posix
} // namespace iox

#endif
#endif // IOX_DUST_POSIX_IPC_NAMED_PIPE_HPP
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
//
// SPDX-License-Identifier: Apache-2.0

#include "iceoryx_dust/posix_wrapper/message_queue.hpp"
#include "iox/posix/message_queue.hpp"
#include "iceoryx_hoofs/posix_wrapper/posix_call.hpp"
#include "iceoryx_platform/fcntl.hpp"
#include "iceoryx_platform/platform_correction.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
//
// SPDX-License-Identifier: Apache-2.0

#include "iceoryx_dust/posix_wrapper/named_pipe.hpp"
#include "iox/posix/named_pipe.hpp"
#include "iox/bump_allocator.hpp"
#include "iox/deadline_timer.hpp"
#include "iox/filesystem.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
// limitations under the License.
//
// SPDX-License-Identifier: Apache-2.0
#ifndef IOX_DUST_POSIX_WRAPPER_SIGNAL_WATCHER_HPP
#define IOX_DUST_POSIX_WRAPPER_SIGNAL_WATCHER_HPP

#ifndef IOX_DUST_POSIX_SYNC_SIGNAL_WATCHER_HPP
#define IOX_DUST_POSIX_SYNC_SIGNAL_WATCHER_HPP

#include "iceoryx_hoofs/posix_wrapper/signal_handler.hpp"
#include "iceoryx_hoofs/posix_wrapper/unnamed_semaphore.hpp"
Expand Down Expand Up @@ -85,4 +86,4 @@ bool hasTerminationRequested() noexcept;
} // namespace posix
} // namespace iox

#endif
#endif // IOX_DUST_POSIX_SYNC_SIGNAL_WATCHER_HPP
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
// limitations under the License.
//
// SPDX-License-Identifier: Apache-2.0
#include "iceoryx_dust/posix_wrapper/signal_watcher.hpp"

#include "iox/posix/signal_watcher.hpp"
#include "iceoryx_platform/unistd.hpp"

namespace iox
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
//
// SPDX-License-Identifier: Apache-2.0

#include "iceoryx_dust/posix_wrapper/signal_watcher.hpp"
#include "iceoryx_hoofs/testing/barrier.hpp"
#include "iceoryx_hoofs/testing/watch_dog.hpp"
#include "iox/posix/signal_watcher.hpp"
#include "test.hpp"
#include <atomic>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
//
// SPDX-License-Identifier: Apache-2.0

#include "iceoryx_dust/posix_wrapper/signal_watcher.hpp"
#include "iceoryx_posh/popo/listener.hpp"
#include "iceoryx_posh/popo/subscriber.hpp"
#include "iceoryx_posh/popo/user_trigger.hpp"
#include "iceoryx_posh/runtime/posh_runtime.hpp"
#include "iox/optional.hpp"
#include "iox/posix/signal_watcher.hpp"
#include "topic_data.hpp"

#include <chrono>
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/callbacks/ice_callbacks_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
//
// SPDX-License-Identifier: Apache-2.0

#include "iceoryx_dust/posix_wrapper/signal_watcher.hpp"
#include "iceoryx_posh/popo/publisher.hpp"
#include "iceoryx_posh/runtime/posh_runtime.hpp"
#include "iox/posix/signal_watcher.hpp"
#include "topic_data.hpp"

#include <chrono>
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/callbacks/ice_callbacks_subscriber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
//
// SPDX-License-Identifier: Apache-2.0

#include "iceoryx_dust/posix_wrapper/signal_watcher.hpp"
#include "iceoryx_posh/popo/listener.hpp"
#include "iceoryx_posh/popo/subscriber.hpp"
#include "iceoryx_posh/popo/user_trigger.hpp"
#include "iceoryx_posh/runtime/posh_runtime.hpp"
#include "iox/optional.hpp"
#include "iox/posix/signal_watcher.hpp"
#include "topic_data.hpp"

#include <chrono>
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/complexdata/iox_publisher_complexdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

#include "topic_data.hpp"

#include "iceoryx_dust/posix_wrapper/signal_watcher.hpp"
#include "iceoryx_posh/popo/publisher.hpp"
#include "iceoryx_posh/runtime/posh_runtime.hpp"
#include "iox/posix/signal_watcher.hpp"

constexpr char APP_NAME[] = "iox-cpp-publisher-complexdata";

Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/complexdata/iox_publisher_vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

#include "iox/vector.hpp"

#include "iceoryx_dust/posix_wrapper/signal_watcher.hpp"
#include "iceoryx_posh/popo/publisher.hpp"
#include "iceoryx_posh/runtime/posh_runtime.hpp"
#include "iox/posix/signal_watcher.hpp"

constexpr char APP_NAME[] = "iox-cpp-publisher-vector";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

#include "topic_data.hpp"

#include "iceoryx_dust/posix_wrapper/signal_watcher.hpp"
#include "iceoryx_posh/popo/subscriber.hpp"
#include "iceoryx_posh/runtime/posh_runtime.hpp"
#include "iox/posix/signal_watcher.hpp"
#include "iox/string.hpp"

constexpr char APP_NAME[] = "iox-cpp-subscriber-complexdata";
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/complexdata/iox_subscriber_vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
//
// SPDX-License-Identifier: Apache-2.0

#include "iceoryx_dust/posix_wrapper/signal_watcher.hpp"
#include "iceoryx_posh/popo/subscriber.hpp"
#include "iceoryx_posh/runtime/posh_runtime.hpp"
#include "iox/posix/signal_watcher.hpp"
#include "iox/string.hpp"
#include "iox/vector.hpp"

Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/ice_access_control/iox_display_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

#include "topic_data.hpp"

#include "iceoryx_dust/posix_wrapper/signal_watcher.hpp"
#include "iceoryx_posh/popo/publisher.hpp"
#include "iceoryx_posh/popo/subscriber.hpp"
#include "iceoryx_posh/runtime/posh_runtime.hpp"
#include "iox/posix/signal_watcher.hpp"

#include <iostream>

Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/ice_access_control/iox_radar_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

#include "topic_data.hpp"

#include "iceoryx_dust/posix_wrapper/signal_watcher.hpp"
#include "iceoryx_posh/popo/publisher.hpp"
#include "iceoryx_posh/runtime/posh_runtime.hpp"
#include "iox/posix/signal_watcher.hpp"

#include <iostream>

Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/icedelivery/iox_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
//! [include publisher]
#include "iceoryx_posh/popo/publisher.hpp"
//! [include publisher]
#include "iceoryx_dust/posix_wrapper/signal_watcher.hpp"
#include "iceoryx_posh/runtime/posh_runtime.hpp"
#include "iox/posix/signal_watcher.hpp"

#include <iostream>

Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/icedelivery/iox_publisher_untyped.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
//! [include topic data]

//! [includes]
#include "iceoryx_dust/posix_wrapper/signal_watcher.hpp"
#include "iceoryx_posh/popo/untyped_publisher.hpp"
#include "iceoryx_posh/runtime/posh_runtime.hpp"
#include "iox/posix/signal_watcher.hpp"
//! [includes]

#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_examples/icedelivery/iox_subscriber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
//! [include subscriber]
#include "iceoryx_posh/popo/subscriber.hpp"
//! [include subscriber]
#include "iceoryx_dust/posix_wrapper/signal_watcher.hpp"
#include "iceoryx_posh/runtime/posh_runtime.hpp"
#include "iox/posix/signal_watcher.hpp"

#include <iostream>

Expand Down
Loading

0 comments on commit 4144844

Please sign in to comment.