Skip to content

Conversation

@niveshdandyan
Copy link

Summary

This PR consolidates publish/subscribe port related type definitions into pub_sub_port_types.hpp, following the established pattern of client_server_port_types.hpp.

Fixes #1051

Changes

pub_sub_port_types.hpp

  • Added PublisherChunkQueueData_t, PublisherChunkDistributorData_t, and PublisherChunkSenderData_t type aliases
  • Added SubscriberEvent and SubscriberState enums (following ClientEvent/ClientState pattern)
  • Added necessary includes for chunk distributor and sender data
  • Removed TODO comment

publisher_port_data.hpp

  • Updated to use types from pub_sub_port_types.hpp instead of defining them locally
  • Removed redundant includes (chunk_distributor_data.hpp, chunk_sender_data.hpp, locking_policy.hpp, subscriber_port_data.hpp)
  • Simplified type aliases to reference the new centralized definitions

subscriber_port_data.hpp

Benefits

  • Reduced dependency issues: publisher_port_data.hpp no longer depends on subscriber_port_data.hpp
  • Single point of definition: All pub/sub communication types are now in one file
  • Improved discoverability: Easier to find and understand pub/sub type definitions
  • Consistent with existing patterns: Follows the same structure as client_server_port_types.hpp

Testing

  • Compile test - CI will verify
  • Existing tests should pass unchanged (no runtime behavior changes)

Signed-off-by: Nivesh Dandyan niveshdandyan@gmail.com

@niveshdandyan niveshdandyan force-pushed the iox-1051-pub-sub-port-types branch from c440f1f to d0f47ea Compare February 3, 2026 15:11
@niveshdandyan
Copy link
Author

Eclipse Contributor Agreement has been signed. Requesting ECA revalidation.

@niveshdandyan
Copy link
Author

Eclipse Contributor Agreement has been signed by the author (niveshdandyan@gmail.com). Please re-run the ECA validation check.

…t_types.hpp

This commit consolidates publish/subscribe port related type definitions
into pub_sub_port_types.hpp, following the established pattern of
client_server_port_types.hpp.

Changes:
- Added PublisherChunkQueueData_t, PublisherChunkDistributorData_t, and
  PublisherChunkSenderData_t type aliases to pub_sub_port_types.hpp
- Added SubscriberEvent and SubscriberState enums to pub_sub_port_types.hpp
- Updated publisher_port_data.hpp to use types from pub_sub_port_types.hpp
  instead of defining them locally
- Removed redundant includes from publisher_port_data.hpp
- Removed TODO comment from subscriber_port_data.hpp and simplified aliases

Benefits:
- Reduces dependency issues between port data headers
- Provides a single point of definition for pub/sub communication types
- Improves code organization and discoverability
- Consistent with client_server_port_types.hpp pattern

Signed-off-by: Nivesh Dandyan <niveshdandyan@gmail.com>
@niveshdandyan niveshdandyan force-pushed the iox-1051-pub-sub-port-types branch from d0f47ea to f6e27d6 Compare February 3, 2026 15:16
Copy link
Member

@elBoberido elBoberido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing. Just a minor issue with the patch.

Please also be aware that the core team moved the effort to iceoryx2 and there will probably be no further release of iceoryx classic. I hope this does not affect your motivation to contribute to the iceoryx project in general.

Comment on lines +49 to +57
enum class SubscriberEvent : EventEnumIdentifier
{
DATA_RECEIVED
};

enum class SubscriberState : StateEnumIdentifier
{
HAS_DATA
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is added here, it needs to be removed from base_subscriber.hpp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move publish subscribe port related type definitions to separate header

2 participants