aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pipewire/header.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-11-24 23:29:06 +0900
committerOphestra <cat@gensokyo.uk>2025-11-25 01:20:30 +0900
commit5bcafcf73421cfdd8c80a0a0daec9ac09d8784e2 (patch)
tree25b72f78f9e2d0a4aa42ca691f08dcdc5bed078b /internal/pipewire/header.go
parent9f7b0c2f46305f8a321791d6fcedc3df7f966783 (diff)
internal/pipewire: implement Core::Hello
This implements enough types to correctly marshal and unmarshal Core::Hello. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pipewire/header.go')
-rw-r--r--internal/pipewire/header.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/pipewire/header.go b/internal/pipewire/header.go
index 99632208..3ab22d49 100644
--- a/internal/pipewire/header.go
+++ b/internal/pipewire/header.go
@@ -22,16 +22,16 @@ var (
// A Header is the fixed-size message header described in protocol native.
type Header struct {
// The message id this is the destination resource/proxy id.
- ID Uint `json:"Id"`
+ ID Word `json:"Id"`
// The opcode on the resource/proxy interface.
Opcode byte `json:"opcode"`
// The size of the payload and optional footer of the message.
// Note: this value is only 24 bits long in the format.
Size uint32 `json:"size"`
// An increasing sequence number for each message.
- Sequence Uint `json:"seq"`
+ Sequence Word `json:"seq"`
// Number of file descriptors in this message.
- FileCount Uint `json:"n_fds"`
+ FileCount Word `json:"n_fds"`
}
// append appends the protocol native message header to data.