mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 04:20:13 +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:
@@ -17,6 +17,8 @@
|
||||
#include "host.h"
|
||||
|
||||
#include <clap/ext/audio-ports.h>
|
||||
#include <clap/ext/note-ports.h>
|
||||
#include <clap/ext/params.h>
|
||||
|
||||
namespace clap {
|
||||
namespace host {
|
||||
@@ -28,5 +30,12 @@ Host::Host(const clap_host_t& original)
|
||||
url(original.url ? std::optional(original.url) : std::nullopt),
|
||||
version((assert(original.version), original.version)) {}
|
||||
|
||||
std::array<std::pair<bool, const char*>, 3> SupportedHostExtensions::list()
|
||||
const noexcept {
|
||||
return {std::pair(supports_audio_ports, CLAP_EXT_AUDIO_PORTS),
|
||||
std::pair(supports_note_ports, CLAP_EXT_NOTE_PORTS),
|
||||
std::pair(supports_params, CLAP_EXT_PARAMS)};
|
||||
}
|
||||
|
||||
} // namespace host
|
||||
} // namespace clap
|
||||
|
||||
Reference in New Issue
Block a user