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

Drop get_ prefix from fns #437

Merged
merged 1 commit into from
Oct 10, 2023
Merged

Drop get_ prefix from fns #437

merged 1 commit into from
Oct 10, 2023

Conversation

MarijnS95
Copy link
Member

@MarijnS95 MarijnS95 commented Oct 7, 2023

According to Rust's C-GETTER convention function names should not have a get_ prefix, and we maintain this standard in some but not all parts of the ndk. Consistenize that by dropping it everywhere, and add doc(alias)es to at least these functions (as I have been doing to new API wrappers added over the past few months too) to make it easier for users to find by the original NDK C symbol name.

In addition the audio module received some extra doc cleanup to get rid of redundant Available since API level xx. doc-comments (these are already provided via features and doc_cfg) as well as vague statements about integer return values when the return type has been translated to a Return<()>.

@MarijnS95 MarijnS95 added the impact: breaking API/ABI-breaking change label Oct 7, 2023
@MarijnS95 MarijnS95 force-pushed the drop-get-prefix branch 2 times, most recently from bee0d54 to c424376 Compare October 10, 2023 11:42
According to [Rust's C-GETTER convention] function names should not have
a `get_` prefix, and we maintain this standard in some but not all parts
of the `ndk`.  Consistenize that by dropping it everywhere, and add
`doc(alias)`es to at least these functions (as I have been doing to new
API wrappers added over the past few months too) to make it easier for
users to find by the original NDK C symbol name.

In addition the `audio` module received some extra doc cleanup to get
rid of redundant `Available since API level xx.` doc-comments (these
are already provided via `feature`s and `doc_cfg`) as well as vague
statements about integer return values when the return type has been
translated to a `Return<()>`.

[Rust's C-GETTER convention]: https://rust-lang.github.io/api-guidelines/naming.html#getter-names-follow-rust-convention-c-getter
@MarijnS95 MarijnS95 merged commit b17576a into master Oct 10, 2023
36 checks passed
@MarijnS95 MarijnS95 deleted the drop-get-prefix branch October 10, 2023 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact: breaking API/ABI-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant