Skip to content

Commit

Permalink
replier_id is marked as unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallets committed Jul 5, 2024
1 parent a0557ba commit eaa8440
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ fs_extra = "1.3.0"

[lib]
path="src/lib.rs"
name = "zenohc"
name = "zenohcd"
crate-type = ["cdylib", "staticlib"]
doctest = false

Expand Down
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

0 comments on commit eaa8440

Please sign in to comment.