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

use optimal types in c header #398

Merged
merged 2 commits into from
Jun 13, 2023
Merged

use optimal types in c header #398

merged 2 commits into from
Jun 13, 2023

Conversation

BillyDM
Copy link
Contributor

@BillyDM BillyDM commented Jun 6, 2023

Some of the types in the C header were either wrong or not not optimal.

Also, in my Rust bindings to RtAudio https://github.com/BillyDM/rtaudio-sys, I currently need to include an automatic bindings generator in the build system, which is inconvenient since it requires the user of the crate to have Clang installed on their system.

This auto bindings generator is needed because of the two enum types rtaudio_error_t and rtaudio_api_t. If those types were instead integers, then I could remove that binding generator step from my build system. So I went ahead and made that change too.

@garyscavone garyscavone merged commit 176a1e7 into thestk:master Jun 13, 2023
12 checks passed
@BillyDM BillyDM deleted the c-types branch June 14, 2023 20:17
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.

None yet

2 participants