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

quite a number of constant not added into binding.rs #2

Closed
alanpoon opened this issue Jun 11, 2018 · 1 comment
Closed

quite a number of constant not added into binding.rs #2

alanpoon opened this issue Jun 11, 2018 · 1 comment

Comments

@alanpoon
Copy link

For instance, SL_SPEAKER_FRONT_LEFT. It is inside OpenSLES.h, but it is not inside binding.rs

@appaquet
Copy link
Contributor

This repos contains the bindings generated by bindgen, and unfortunately, they it doesn't support macro defined constants. There is an open issue opened in bindgen's repo.

So, in this case you have to fallback to OpenSLES headers to fine the proper value. You can find the panning constants in OpenSLES.h.

Since this repo was to be used inside an internal project, focus has never been to make it friendly to use. Most bindings crates that are meant to be used have 2 crates: one "sys" crate (like this one) and one Rust friendly create (usually with no unsafe exposed). Feel free to open a PR if you want to expose all those macro defined constants to this repo!

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

No branches or pull requests

2 participants