Skip to content

Fix zenoh pico connectivity guard for closures#771

Merged
milyin merged 2 commits intoeclipse-zenoh:mainfrom
DenisBiryukov91:fix-zenoh-pico-connectivity-guard2
Apr 10, 2026
Merged

Fix zenoh pico connectivity guard for closures#771
milyin merged 2 commits intoeclipse-zenoh:mainfrom
DenisBiryukov91:fix-zenoh-pico-connectivity-guard2

Conversation

@DenisBiryukov91
Copy link
Copy Markdown
Contributor

Fix zenoh pico connectivity guard for closures to check for Z_FEATURE_CONNECTIVITY==1

@DenisBiryukov91 DenisBiryukov91 added the internal Changes not included in the changelog label Apr 10, 2026
@DenisBiryukov91 DenisBiryukov91 requested a review from Copilot April 10, 2026 15:23
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR tightens the preprocessor guards around the (unstable) connectivity-related C++ closure callbacks and public API includes so they are only enabled when the underlying C backend actually provides connectivity support (zenoh-c always, zenoh-pico only when Z_FEATURE_CONNECTIVITY == 1).

Changes:

  • Gate inclusion of connectivity-related API headers in closures_concrete.hxx on Z_FEATURE_CONNECTIVITY == 1 (for zenoh-pico) or ZENOHCXX_ZENOHC (for zenoh-c).
  • Gate inclusion of connectivity-related headers in the top-level api.hxx aggregator with the same condition.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
include/zenoh/detail/closures_concrete.hxx Prevents compiling/linking connectivity closure callbacks when connectivity is not available in the backend.
include/zenoh/api.hxx Prevents exposing connectivity API headers via the umbrella header when the backend lacks connectivity support.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@milyin milyin merged commit af381b4 into eclipse-zenoh:main Apr 10, 2026
30 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Changes not included in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants