-
Notifications
You must be signed in to change notification settings - Fork 20
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
Cleanup to C Plugins #66
Conversation
Updating the "wooting-analog-plugin-examples" repo should be as easy as removing the Also, the |
… prefix on some funcs - Remove dangling pointer to callback on cplugin unload - Remove need to allocate DeviceInfo in rust from a c plugin. We just let them use the FFI type and we copy the data over - Add some const qualifiers to things that should never be mutated
* Simplify CMakeLists for test_c_plugin It no longer needs linking against Rust code * Remove new_device_info & drop_device_info * Bump CPLUGIN_ABI_VERSION since everything's definitely incompatible now
* Fix "bindings changed" * Also run workflow on PR
a1b9989
to
2d77f3d
Compare
@Sainan Do you see any issues with the state of this PR itself? Would be good to get this merged now |
Seems fine, and double-checked it works with my plugin. |
I'd also be ready and able to update the example C plugin. Afaict, it's already broken because it doesn't seem to export the ABI version constant, at least on Windows. But would be a bit pointless for me to submit ABI v0 patches now. Although you could remove the |
If you're able to create PRs for updating those bits, that would be a massive help 🙏 |
TODO: