aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pipewire/core.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-11-29 02:55:30 +0900
committerOphestra <cat@gensokyo.uk>2025-11-29 02:55:30 +0900
commitf703aa20a599529aace054ef8befc5128afb59e2 (patch)
treeece1784129ef0711bc8d672472b74bfe2704e181 /internal/pipewire/core.go
parent5c12425d48e7f3aad70a4e712ec35b96653b9935 (diff)
internal/pipewire: implement client generation footer
This corresponds with the core generation footer and seem to be the only other possible footer type. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pipewire/core.go')
-rw-r--r--internal/pipewire/core.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/pipewire/core.go b/internal/pipewire/core.go
index a54ec111..9e3613ba 100644
--- a/internal/pipewire/core.go
+++ b/internal/pipewire/core.go
@@ -81,6 +81,16 @@ type FooterCoreGeneration struct {
RegistryGeneration Long `json:"registry_generation"`
}
+// The FooterClientGeneration indicates to the server what is the last
+// registry generation number the client has processed.
+//
+// The client shall include this footer in the next message it sends,
+// after it has processed an incoming message whose footer includes a
+// registry generation update.
+type FooterClientGeneration struct {
+ ClientGeneration Long `json:"client_generation"`
+}
+
// A CoreInfo event is emitted by the server upon connection
// with the more information about the server.
type CoreInfo struct {