wireplumber/tests/wp/settings/wireplumber.conf
Julian Bouzas 424a8e5263 settings: add API to set, reset, save, delete and iterate settings
Also improves and refactor the settings unit test to test all the new API added.
2024-02-28 10:20:20 -05:00

62 lines
1.5 KiB
Text

context.modules = [
{ name = libpipewire-module-protocol-native }
{ name = libpipewire-module-metadata }
]
wireplumber.settings.schema = {
test-setting-bool = {
description = "test-setting-bool description"
type = "bool"
default = false
}
test-setting-int = {
description = "test-setting-int description"
type = "int"
default = 0
min = -100
max = 100
}
test-setting-float = {
description = "test-setting-float description"
type = "float"
default = 0.0
min = -100.0
max = 100.0
}
test-setting-string = {
description = "test-setting-string description"
type = "string"
default = "default"
}
test-setting-string2 = {
description = "test-setting-string2 description"
type = "string"
default = "default"
}
test-setting-array = {
description = "test-setting-array description"
type = "array"
default = []
}
test-setting-array2 = {
description = "test-setting-array2 description"
type = "array"
default = []
}
test-setting-object = {
description = "test-setting-object description"
type = "object"
default = {}
}
}
wireplumber.settings = {
test-setting-bool = true
test-setting-int = -20
test-setting-float = 3.14
test-setting-string = "blahblah"
test-setting-string2 = "a string with \"quotes\""
test-setting-array = [1, 2, 3]
test-setting-array2 = ["test1", "test 2", "test three", "test-four"]
test-setting-object = { key1: "value", key2: 2, key3: true }
}