Rust bindings for the Mumble Client Plugin API.
To use:
-
Create a struct implementing
mumble_sys::traits::MumblePlugin. -
Use rust-ctor to set an initializer which calls
mumble_sys::set_registration_callback(cb). -
Define
cbto take amumble_sys::RegistrationTokenand return nothing. -
In the callback, instantiate your plugin and call
mumble_sys::register_pluginwith details of your plugin, and pass it the provided token. -
Your
MumblePlugincan use the API given to it byset_apias long as it is set. It should be provided shortly after the call toinitoccurs. Feel free to multithread, just mutex the API given byset_api.