mumble-sys

Crates.iomumble-sys
lib.rsmumble-sys
version0.1.0
sourcesrc
created_at2020-08-30 06:17:56.191339
updated_at2020-08-30 06:17:56.191339
descriptionPlugin SDK for Mumble's client plugin system
homepagehttps://github.com/Dessix/rust-mumble-sys
repositoryhttps://github.com/Dessix/rust-mumble-sys
max_upload_size
id282567
size109,007
Zoey (Dessix)

documentation

README

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 a mumble_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 by set_api as long as it is set. It should be provided shortly after the call to init occurs. Feel free to multithread, just mutex the API given by set_api.

Commit count: 33

cargo fmt