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

z_get callback lacks support for z_owned_reply_t #501

Closed
YuanYuYuan opened this issue Jul 4, 2024 · 1 comment
Closed

z_get callback lacks support for z_owned_reply_t #501

YuanYuYuan opened this issue Jul 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@YuanYuYuan
Copy link
Contributor

YuanYuYuan commented Jul 4, 2024

Describe the bug

Users may want to use z_get with a callback instead of calling z_recv as we do in examples/z_get.c. However, the callback is not allowed to take a z_owned_reply_t as the input according to the definition of z_owned_closure_reply_t.

pub(crate) call: Option<extern "C" fn(reply: *const z_loaned_reply_t, context: *mut c_void)>,

System info

  • zenoh-c (dev/1.0) commit: 62c3345
@YuanYuYuan YuanYuYuan added the bug Something isn't working label Jul 4, 2024
@YuanYuYuan YuanYuYuan changed the title z_get callback lacks support for z_owned_reply_t z_get callback lacks support for z_owned_reply_t Jul 4, 2024
@YuanYuYuan YuanYuYuan changed the title z_get callback lacks support for z_owned_reply_t z_get callback lacks support for z_owned_reply_t Jul 4, 2024
@DenisBiryukov91
Copy link
Contributor

This is not an issue, since reply can be cloned via z_reply_clone to get the owned one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants