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

Add keyexpr_was_declared api function #315

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

jean-roland
Copy link
Contributor

Fixes issue #242

@@ -77,6 +77,14 @@
}
}

_Bool zp_keyexpr_was_declared(const z_keyexpr_t *keyexpr) {

Check warning

Code scanning / Cppcheck (reported by Codacy)

misra violation 804 with no text in the supplied rule-texts-file Warning

misra violation 804 with no text in the supplied rule-texts-file
@Mallets Mallets requested a review from milyin January 10, 2024 16:24
@Mallets
Copy link
Member

Mallets commented Jan 10, 2024

LGTM but I'd like to have the review as well from @milyin .

Copy link
Contributor

@milyin milyin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documentation update requested

@@ -97,6 +97,18 @@ z_owned_str_t z_keyexpr_to_string(z_keyexpr_t keyexpr);
*/
z_bytes_t z_keyexpr_as_bytes(z_keyexpr_t keyexpr);

/**
* Indicates if the key expression has been declared but don't guarantee it's still in session.
Copy link
Contributor

@milyin milyin Jan 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add that it's not possible to get key expression string representation if it's declared and add a reference to zp_resolve as a way to access this data. This will make clear why this function is needed and connect this function to two functions above

@milyin milyin merged commit 53c6aa5 into eclipse-zenoh:master Jan 12, 2024
47 checks passed
@jean-roland jean-roland deleted the ft_keyexpr branch January 12, 2024 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants