Skip to content

Commit

Permalink
[#264] Fix accessability of 'FileDescriptorView' methods
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Nov 27, 2024
1 parent 11a446f commit 48f2d71
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 48f2d71

Please sign in to comment.