Add message types for restart and process requests

This commit is contained in:
Robbert van der Helm
2022-09-11 16:19:53 +02:00
parent feae63b091
commit 218b919f32
+32
View File
@@ -24,6 +24,7 @@
#include <clap/plugin.h>
#include "../../bitsery/ext/in-place-optional.h"
#include "../common.h"
// Serialization messages for `clap/host.h`
@@ -94,5 +95,36 @@ struct SupportedHostExtensions {
}
};
/**
* Message struct for `clap_host::request_restart()`.
*/
struct RequestRestart {
using Response = Ack;
native_size_t owner_instance_id;
template <typename S>
void serialize(S& s) {
s.value8b(owner_instance_id);
}
};
/**
* Message struct for `clap_host::request_process()`.
*/
struct RequestProcess {
using Response = Ack;
native_size_t owner_instance_id;
template <typename S>
void serialize(S& s) {
s.value8b(owner_instance_id);
}
};
// `clap_host::request_callback()` is of course handled entirely on the Wine
// plugin host side
} // namespace host
} // namespace clap