ndk-sys: Regenerate against NDK r23 #178
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Android 12 reached platform stability today, including the first stable release of NDK r23.
Will add some of the new API surface to our safe wrappers in a separate PR. Perhaps it's a good idea to regenerate against identical (r22.1, beta 3) headers first but with newer bindgen, to make the diff more clear? Not that it matters for squash-merges unless we put that in a separate PR too, LMK.
At the same time we might want to start thinking about guarding symbols based on a user-selected version. We could for example have a feature version per NDK or per SDK/API version so that there is a clear up-front contract for the programmer that they can only call certain certain functions if at least some version feature is enabled; that's how the various gtk-rs bindings do it. They have the advantage of directly querying that exact version from pkg-build though, and running into linker errors immediately if things don't match.