-
Notifications
You must be signed in to change notification settings - Fork 57
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
support internal/unstable close builder API #835
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, but the separation between core and zenoh-c specific API should be implemented for structure fields
include/zenoh_commons.h
Outdated
/** | ||
* The timeout for close operation in milliseconds. 0 means default close timeout which is 10 seconds. | ||
*/ | ||
uint32_t timeout_ms; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering how to separate fields of options structures to "core" api and "zenoh-c" (or zenoh-pico) specific API.
It seems that if the structure contains zenoh-c specific fields, it should be zc_close_options_t
itself.
This means that we have to add also the function zc_close
which takes zc_close_options_t
instead of common z_close_options_t
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, z_close
is not zenoh-c specific API, as well as option's fields like timeout
and out_concurrent
- they are present in Rust with some language-specific difference.
Otherwise following your logic, we should zc_*
everything that has options API.....
Conflicts: Cargo.lock build-resources/opaque-types/Cargo.lock build-resources/opaque-types/Cargo.toml include/zenoh_macros.h
- close API is unstable and internal
[closes #832 ]
This is temporary API, it's going to be replaced when eclipse-zenoh/zenoh#1626 is implemented