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

implement z_take for z_loaned_xxx_t*, pass mutable loaned in callbacks #658

Closed
milyin opened this issue Sep 6, 2024 · 2 comments
Closed
Labels
api fix Problem in the API enhancement New feature or request release Part of the next release

Comments

@milyin
Copy link
Contributor

milyin commented Sep 6, 2024

  • implement z_take methods for mutably loaned types z_loan_xxx_t* (coordinate exact naming with pico)
  • pass z_loan_xxx_t* to callbacks (instead of const z_load_xxx_t*), allowing user to take ownership of the owned object by z_take or keep ownership for caller. This will make clone unnecessary for callbacks.
@milyin milyin added enhancement New feature or request api fix Problem in the API release Part of the next release labels Sep 6, 2024
@DenisBiryukov91
Copy link
Contributor

DenisBiryukov91 commented Sep 9, 2024

Is it really needed given that we decided to keep clone functionality for sample/query/reply ?

@milyin
Copy link
Contributor Author

milyin commented Sep 9, 2024

after eclipse-zenoh/zenoh#1383 no need to do this

@milyin milyin closed this as completed Sep 9, 2024
@milyin milyin reopened this Sep 9, 2024
@milyin milyin closed this as not planned Won't fix, can't repro, duplicate, stale Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api fix Problem in the API enhancement New feature or request release Part of the next release
Projects
Status: Done
Development

No branches or pull requests

2 participants