aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pipewire/pod.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-11-29 02:58:44 +0900
committerOphestra <cat@gensokyo.uk>2025-11-29 03:01:53 +0900
commit5a5c4705dd47c7e27f49526b4ccf0d4c7c1bab5a (patch)
treea4f01207e10d1a6f5b545f3e54eaddbac3e12ef8 /internal/pipewire/pod.go
parentf703aa20a599529aace054ef8befc5128afb59e2 (diff)
internal/pipewire: implement Registry::Bind
This change also adds test cases for messages before this one. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pipewire/pod.go')
-rw-r--r--internal/pipewire/pod.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/internal/pipewire/pod.go b/internal/pipewire/pod.go
index 6e13177d..1abc821a 100644
--- a/internal/pipewire/pod.go
+++ b/internal/pipewire/pod.go
@@ -457,7 +457,15 @@ func (f *Footer[T]) MarshalBinary() ([]byte, error) { return Marshal(f) }
func (f *Footer[T]) UnmarshalBinary(data []byte) error { return Unmarshal(data, f) }
// SPADictItem represents spa_dict_item.
-type SPADictItem struct{ Key, Value string }
+type SPADictItem struct {
+ // Dot-separated string.
+ Key string `json:"key"`
+ // Arbitrary string.
+ //
+ // Integer values are represented in base 10,
+ // boolean values are represented as "true" or "false".
+ Value string `json:"value"`
+}
// SPADict represents spa_dict.
type SPADict []SPADictItem