Skip to content

Commit

Permalink
REFAC(plugin): Rename plugin ID parameter
Browse files Browse the repository at this point in the history
Instead of passing the type name directly we pass the alias instead in
order to make code more easily portable between API versions.
  • Loading branch information
Krzmbrzl committed May 26, 2021
1 parent 8c99fe8 commit e9aa3c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/MumblePlugin_v_1_0_x.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ extern "C" {
/// @param id The ID for this plugin. This is the ID Mumble will reference this plugin with
/// and by which this plugin can identify itself when communicating with Mumble.
/// @returns The status of the initialization. If everything went fine, return STATUS_OK
PLUGIN_EXPORT mumble_error_t PLUGIN_CALLING_CONVENTION mumble_init(uint32_t id);
PLUGIN_EXPORT mumble_error_t PLUGIN_CALLING_CONVENTION mumble_init(mumble_plugin_id_t id);

/// Gets called when unloading the plugin in order to allow it to clean up after itself.
/// Note that it is still safe to call API functions from within this callback.
Expand Down

0 comments on commit e9aa3c7

Please sign in to comment.