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

Fixed mismatched type error in menu item API #82

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Conversation

pomettini
Copy link
Contributor

@pomettini pomettini commented Jan 15, 2024

Crankstart does not compile because of this. I ran the menu_items.rs example and it works as expected

@pomettini
Copy link
Contributor Author

I'm not 100% sure what that cast does to be fair, tagging @tehsmeely who wrote the menu item API for visibility :)

@boozook boozook merged commit 5367162 into pd-rs:main Jan 17, 2024
1 check passed
@boozook boozook linked an issue Jan 17, 2024 that may be closed by this pull request
@tehsmeely
Copy link
Contributor

It seems this is a fragility we introduced as:

docs

The type of the returned pointer is *const c_char, and whether it’s an alias for *const i8 or *const u8 is platform-specific.

I'll make a new PR to resolve this better since it's now broken again on my platform (windows)

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.

Access to system menu API
3 participants