Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add source info support #422

Merged
merged 6 commits into from
Jun 6, 2024

Conversation

sashacmc
Copy link
Member

@sashacmc sashacmc commented Jun 4, 2024

Added z_owned_source_info_t and z_loaned_source_info_t types for represent SourceInfo

Added z_entity_global_id_t type for represent EntityGlobalId

Added source_info fields to:

  • z_get_options_t
  • z_publisher_put_options_t
  • z_put_options_t
  • z_query_reply_options_t

Added z_sample_source_info getter

Added test, updated Cargo.lock to use updated zenoh (with fix to be aligned to new zenoh)

Closes: #383

@sashacmc sashacmc changed the title Source info support Add source info support Jun 6, 2024
@sashacmc sashacmc force-pushed the source_info_support branch from d66ad74 to 1a41a84 Compare June 6, 2024 11:27
@sashacmc sashacmc marked this pull request as ready for review June 6, 2024 11:49
exit(-1);
}
const uint64_t sn = z_source_info_sn(source_info);
if (sn != 24) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible somehow to avoid usage of magic numbers?

@sashacmc sashacmc requested a review from milyin June 6, 2024 12:18
@milyin milyin merged commit 0826c5e into eclipse-zenoh:dev/1.0.0 Jun 6, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants