Add a basic CLAP plugin factory implementation

Which can only list plugins without creating them.
This commit is contained in:
Robbert van der Helm
2022-09-05 17:37:12 +02:00
parent 1339c20fc1
commit c36590abf5
5 changed files with 142 additions and 4 deletions
+5 -1
View File
@@ -68,7 +68,7 @@ struct descriptor {
* to this object's fields, so this descriptor is only valid as long as this
* object is alive and doesn't get moved.
*/
clap_plugin_descriptor_t get() const;
const clap_plugin_descriptor_t* get() const;
template <typename S>
void serialize(S& s) {
@@ -98,6 +98,10 @@ struct descriptor {
* Populated as part of `get()`.
*/
mutable std::vector<const char*> features_ptrs;
/**
* The CLAP descriptor populated and returned from `get()`.
*/
mutable clap_plugin_descriptor_t clap_descriptor;
};
} // namespace plugin