mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-06 19:40:10 +02:00
Move CLAP version serialization to version.h
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
|
||||
#include "../../bitsery/ext/in-place-optional.h"
|
||||
#include "../common.h"
|
||||
#include "version.h"
|
||||
|
||||
// Serialization messages for `clap/host.h`
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "../audio-shm.h"
|
||||
#include "../common.h"
|
||||
#include "host.h"
|
||||
#include "version.h"
|
||||
|
||||
// Serialization messages for `clap/plugin.h`
|
||||
|
||||
@@ -276,10 +277,3 @@ struct Reset {
|
||||
|
||||
} // namespace plugin
|
||||
} // namespace clap
|
||||
|
||||
template <typename S>
|
||||
void serialize(S& s, clap_version_t& version) {
|
||||
s.value4b(version.major);
|
||||
s.value4b(version.minor);
|
||||
s.value4b(version.revision);
|
||||
}
|
||||
|
||||
@@ -35,3 +35,10 @@ inline clap_version_t clamp_clap_version(clap_version_t version) {
|
||||
return version;
|
||||
}
|
||||
}
|
||||
|
||||
template <typename S>
|
||||
void serialize(S& s, clap_version_t& version) {
|
||||
s.value4b(version.major);
|
||||
s.value4b(version.minor);
|
||||
s.value4b(version.revision);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user