mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Reorder Vst3Bridge methods
This commit is contained in:
@@ -1202,10 +1202,6 @@ void Vst3Bridge::handle_x11_events() noexcept {
|
||||
}
|
||||
}
|
||||
|
||||
void Vst3Bridge::close_sockets() {
|
||||
sockets.close();
|
||||
}
|
||||
|
||||
void Vst3Bridge::register_context_menu(Vst3ContextMenuProxyImpl& context_menu) {
|
||||
std::lock_guard lock(object_instances.at(context_menu.owner_instance_id())
|
||||
.registered_context_menus_mutex);
|
||||
@@ -1225,6 +1221,10 @@ void Vst3Bridge::unregister_context_menu(size_t object_instance_id,
|
||||
.registered_context_menus.erase(context_menu_id);
|
||||
}
|
||||
|
||||
void Vst3Bridge::close_sockets() {
|
||||
sockets.close();
|
||||
}
|
||||
|
||||
size_t Vst3Bridge::generate_instance_id() noexcept {
|
||||
return current_instance_id.fetch_add(1);
|
||||
}
|
||||
|
||||
@@ -292,6 +292,21 @@ class Vst3Bridge : public HostBridge {
|
||||
|
||||
void handle_x11_events() noexcept override;
|
||||
|
||||
/**
|
||||
* Register a context with with `context_menu`'s ID and owner in
|
||||
* `object_instances`. This will be called during the constructor of
|
||||
* `Vst3ContextMenuProxyImpl` so we can refer to the exact instance later.
|
||||
*/
|
||||
void register_context_menu(Vst3ContextMenuProxyImpl& context_menu);
|
||||
|
||||
/**
|
||||
* Remove a previously registered context menu from `object_instances`. This
|
||||
* is called from the destructor of `Vst3ContextMenuProxyImpl` just before
|
||||
* the object gets freed.
|
||||
*/
|
||||
void unregister_context_menu(size_t object_instance_id,
|
||||
size_t context_menu_id);
|
||||
|
||||
protected:
|
||||
void close_sockets() override;
|
||||
|
||||
@@ -391,21 +406,6 @@ class Vst3Bridge : public HostBridge {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Register a context with with `context_menu`'s ID and owner in
|
||||
* `object_instances`. This will be called during the constructor of
|
||||
* `Vst3ContextMenuProxyImpl` so we can refer to the exact instance later.
|
||||
*/
|
||||
void register_context_menu(Vst3ContextMenuProxyImpl& context_menu);
|
||||
|
||||
/**
|
||||
* Remove a previously registered context menu from `object_instances`. This
|
||||
* is called from the destructor of `Vst3ContextMenuProxyImpl` just before
|
||||
* the object gets freed.
|
||||
*/
|
||||
void unregister_context_menu(size_t object_instance_id,
|
||||
size_t context_menu_id);
|
||||
|
||||
/**
|
||||
* A logger instance we'll use to log about failed
|
||||
* `FUnknown::queryInterface` calls, so they can be hidden on verbosity
|
||||
|
||||
Reference in New Issue
Block a user