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

Mark replier_id accessor as unstable #504

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions include/zenoh_commons.h
Original file line number Diff line number Diff line change
Expand Up @@ -2610,11 +2610,6 @@ ZENOHC_API void z_reply_null(struct z_owned_reply_t *this_);
* Returns `NULL` if reply does not contain a sample (i. e. if `z_reply_is_ok` returns ``false``).
*/
ZENOHC_API const struct z_loaned_sample_t *z_reply_ok(const struct z_loaned_reply_t *this_);
/**
* Gets the id of the zenoh instance that answered this Reply.
* Returns `true` if id is present
*/
ZENOHC_API bool z_reply_replier_id(const struct z_loaned_reply_t *this_, struct z_id_t *out_id);
/**
* Constructs send and recieve ends of the ring channel
*/
Expand Down Expand Up @@ -3671,6 +3666,7 @@ z_error_t z_view_string_wrap(struct z_view_string_t *this_,
* The string has static storage (i.e. valid until the end of the program).
* @param whatami: A whatami bitmask of zenoh entity kind.
* @param str_out: An uninitialized memory location where strring will be constructed.
* @param len: Maximum number of bytes that can be written to the `buf`.
*
* @return 0 if successful, negative error values if whatami contains an invalid bitmask.
*/
Expand Down Expand Up @@ -3927,6 +3923,11 @@ z_error_t zcu_publisher_matching_listener_undeclare(struct zcu_owned_matching_li
* Returns the default value of #zcu_reply_keyexpr_t.
*/
ZENOHC_API enum zcu_reply_keyexpr_t zcu_reply_keyexpr_default(void);
/**
* Gets the id of the zenoh instance that answered this Reply.
* Returns `true` if id is present
*/
ZENOHC_API bool zcu_reply_replier_id(const struct z_loaned_reply_t *this_, struct z_id_t *out_id);
/**
* Constructs and declares a publication cache.
*
Expand Down
2 changes: 1 addition & 1 deletion src/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ pub unsafe extern "C" fn z_reply_err(this: &z_loaned_reply_t) -> *const z_loaned
/// Returns `true` if id is present
#[no_mangle]
#[allow(clippy::missing_safety_doc)]
pub unsafe extern "C" fn z_reply_replier_id(
pub unsafe extern "C" fn zcu_reply_replier_id(
this: &z_loaned_reply_t,
out_id: &mut MaybeUninit<z_id_t>,
) -> bool {
Expand Down