mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-15 21:15:51 +02:00
Move supported extensions lists out of logger
Keeping this next to the supported extensions objects makes it easier to maintain.
This commit is contained in:
@@ -113,12 +113,17 @@ struct Descriptor {
|
||||
* created by `ClapPluginExtensions::supported()`.
|
||||
*/
|
||||
struct SupportedPluginExtensions {
|
||||
// Don't forget to add new extensions to the logger and to the serialize
|
||||
// method
|
||||
// Don't forget to add new extensions to below method
|
||||
bool supports_audio_ports = false;
|
||||
bool supports_note_ports = false;
|
||||
bool supports_params = false;
|
||||
|
||||
/**
|
||||
* Get a list of `<bool, extension_name>` tuples for the supported
|
||||
* extensions. Used during logging.
|
||||
*/
|
||||
std::array<std::pair<bool, const char*>, 3> list() const noexcept;
|
||||
|
||||
template <typename S>
|
||||
void serialize(S& s) {
|
||||
s.value1b(supports_audio_ports);
|
||||
|
||||
Reference in New Issue
Block a user