Skip to content

Commit

Permalink
Merge pull request #530 from elBoberido/iox2-264-fix-accessability-of…
Browse files Browse the repository at this point in the history
…-file-descriptor-native-handle-in-cxx-api

[#264] Fix accessability of 'FileDescriptorView' methods
  • Loading branch information
elBoberido authored Nov 27, 2024
2 parents 11a446f + 48f2d71 commit 91e0de5
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions iceoryx2-ffi/cxx/include/iox2/file_descriptor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,7 @@ class FileDescriptorBased {

/// A view to a [`FileDescriptor`].
class FileDescriptorView : public FileDescriptorBased {
private:
template <ServiceType>
friend class WaitSet;
friend class FileDescriptor;
template <ServiceType>
friend class Listener;

explicit FileDescriptorView(iox2_file_descriptor_ptr handle);

public:
/// Returns a [`FileDescriptorView`] to the underlying [`FileDescriptor`].
auto file_descriptor() const -> FileDescriptorView override;

Expand All @@ -57,6 +49,15 @@ class FileDescriptorView : public FileDescriptorBased {
///
auto unsafe_native_handle() const -> int32_t;

private:
template <ServiceType>
friend class WaitSet;
friend class FileDescriptor;
template <ServiceType>
friend class Listener;

explicit FileDescriptorView(iox2_file_descriptor_ptr handle);

iox2_file_descriptor_ptr m_handle = nullptr;
};

Expand Down

0 comments on commit 91e0de5

Please sign in to comment.