Show a notification on version mismatch

Between the plugin and the Wine plugin host application.
This commit is contained in:
Robbert van der Helm
2021-07-13 22:14:31 +02:00
parent 4013aea63a
commit 5fc7acccd1
5 changed files with 44 additions and 5 deletions
+8 -2
View File
@@ -51,13 +51,19 @@
/**
* Marker struct to indicate the other side (the plugin) should send a copy of
* the configuration.
* the configuration. During this process we will also transmit the version
* string from the host, so we can show a little warning when the user forgot to
* rerun `yabridgectl sync` (and the initialization was still successful).
*/
struct WantsConfiguration {
using Response = Configuration;
std::string host_version;
template <typename S>
void serialize(S&) {}
void serialize(S& s) {
s.text1b(host_version, 128);
}
};
/**