mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-14 12:30:00 +02:00
Add CLAP plugin destroying
Everything else is still a stub, but at least the lifecycle now works correctly.
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include <clap/plugin.h>
|
||||
|
||||
#include "../../bitsery/ext/in-place-optional.h"
|
||||
#include "../common.h"
|
||||
|
||||
// Serialization messages for `clap/plugin.h`
|
||||
|
||||
@@ -104,6 +105,22 @@ struct Descriptor {
|
||||
mutable clap_plugin_descriptor_t clap_descriptor;
|
||||
};
|
||||
|
||||
/**
|
||||
* Message struct for `clap_plugin::destroy()`. The Wine plugin host should
|
||||
* clean up the plugin, and everything is also cleaned up on the plugin side
|
||||
* after receiving acknowledgement
|
||||
*/
|
||||
struct Destroy {
|
||||
using Response = Ack;
|
||||
|
||||
native_size_t instance_id;
|
||||
|
||||
template <typename S>
|
||||
void serialize(S& s) {
|
||||
s.value8b(instance_id);
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace plugin
|
||||
} // namespace clap
|
||||
|
||||
|
||||
Reference in New Issue
Block a user