aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pipewire/core.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/pipewire/core.go')
-rw-r--r--internal/pipewire/core.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/pipewire/core.go b/internal/pipewire/core.go
index a15d0803..4b61972b 100644
--- a/internal/pipewire/core.go
+++ b/internal/pipewire/core.go
@@ -81,6 +81,12 @@ type FooterCoreGeneration struct {
RegistryGeneration Long `json:"registry_generation"`
}
+// Size satisfies [KnownSize] with a constant value.
+func (fcg FooterCoreGeneration) Size() Word {
+ return SizePrefix +
+ Size(SizeLong)
+}
+
// The FooterClientGeneration indicates to the server what is the last
// registry generation number the client has processed.
//
@@ -91,6 +97,12 @@ type FooterClientGeneration struct {
ClientGeneration Long `json:"client_generation"`
}
+// Size satisfies [KnownSize] with a constant value.
+func (fcg FooterClientGeneration) Size() Word {
+ return SizePrefix +
+ Size(SizeLong)
+}
+
// A CoreInfo event is emitted by the server upon connection
// with the more information about the server.
type CoreInfo struct {