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>
This commit is contained in:
2025-11-29 02:55:30 +09:00
parent 5c12425d48
commit f703aa20a5
2 changed files with 29 additions and 2 deletions

View File

@@ -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 {