aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pipewire/pod.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-11-28 01:33:32 +0900
committerOphestra <cat@gensokyo.uk>2025-11-28 01:33:32 +0900
commitcbe86dc4f02bc43d00fd362692a123549ad48efc (patch)
treefeefe80326a6e39318933950b8939ad5c36520a3 /internal/pipewire/pod.go
parentd08a1081bd8131a2708f4cb934f060760371d114 (diff)
internal/pipewire: add json struct tags
These match the names found in documentation. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pipewire/pod.go')
-rw-r--r--internal/pipewire/pod.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/pipewire/pod.go b/internal/pipewire/pod.go
index 42055e19..6e13177d 100644
--- a/internal/pipewire/pod.go
+++ b/internal/pipewire/pod.go
@@ -445,9 +445,9 @@ func unmarshalCheckTypeBounds(data *[]byte, t Word, sizeP *Word) error {
// the destination object defined by the Id field.
type Footer[T any] struct {
// The footer opcode.
- Opcode Id
+ Opcode Id `json:"opcode"`
// The footer payload struct.
- Payload T
+ Payload T `json:"payload"`
}
// MarshalBinary satisfies [encoding.BinaryMarshaler] via [Marshal].