Rename PluginParameters to GroupReuqest

This commit is contained in:
Robbert van der Helm
2020-05-22 14:08:13 +02:00
parent 27af0f8c11
commit dd843519ce
5 changed files with 34 additions and 27 deletions
+1 -1
View File
@@ -109,6 +109,6 @@ AEffect& update_aeffect(AEffect& plugin, const AEffect& updated_plugin) {
return plugin;
}
bool PluginParameters::operator==(const PluginParameters& rhs) const {
bool GroupRequest::operator==(const GroupRequest& rhs) const {
return plugin_path == rhs.plugin_path && socket_path == rhs.socket_path;
}
+4 -4
View File
@@ -577,11 +577,11 @@ struct AudioBuffers {
* group process. These are the exact same options that would have been passed
* to `yabridge-host.exe` were the plugin to be hosted individually.
*/
struct PluginParameters {
struct GroupRequest {
std::string plugin_path;
std::string socket_path;
bool operator==(const PluginParameters& rhs) const;
bool operator==(const GroupRequest& rhs) const;
template <typename S>
void serialize(S& s) {
@@ -591,8 +591,8 @@ struct PluginParameters {
};
template <>
struct std::hash<PluginParameters> {
std::size_t operator()(PluginParameters const& params) const noexcept {
struct std::hash<GroupRequest> {
std::size_t operator()(GroupRequest const& params) const noexcept {
std::hash<string> hasher{};
return hasher(params.plugin_path) ^ (hasher(params.socket_path) << 1);