1 unstable release
0.1.0 | Aug 30, 2020 |
---|
#9 in #mumble
110KB
2.5K
SLoC
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
cb
to take amumble_sys::RegistrationToken
and return nothing. -
In the callback, instantiate your plugin and call
mumble_sys::register_plugin
with details of your plugin, and pass it the provided token. -
Your
MumblePlugin
can use the API given to it byset_api
as long as it is set. It should be provided shortly after the call toinit
occurs. Feel free to multithread, just mutex the API given byset_api
.
Dependencies
~0.6–2.8MB
~52K SLoC