mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Add message types for restart and process requests
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
#include <clap/plugin.h>
|
#include <clap/plugin.h>
|
||||||
|
|
||||||
#include "../../bitsery/ext/in-place-optional.h"
|
#include "../../bitsery/ext/in-place-optional.h"
|
||||||
|
#include "../common.h"
|
||||||
|
|
||||||
// Serialization messages for `clap/host.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 host
|
||||||
} // namespace clap
|
} // namespace clap
|
||||||
|
|||||||
Reference in New Issue
Block a user