pipewire/spa
Barnabás Pőcze 8285966d15 spa: utils: json: add spa_json_encode_stringn()
Add the function `spa_json_encode_stringn()` that works very similarly
to `spa_json_encode_string()`, with the difference that it works with
non-null terminated strings (e.g. `std::string_view`).

`spa_json_encode_string()` is then implemented with this new function.

Additionally, since the input string is no longer null terminated,
escape bytes of value 0. This is probably better that putting
it into the result.
2026-07-06 07:16:48 +00:00
..
examples examples: set diffent Clock and Position on source 2026-05-11 14:02:29 +02:00
include spa: utils: json: add spa_json_encode_stringn() 2026-07-06 07:16:48 +00:00
include-private/spa-private spa: move dbus helpers out of bluez plugin 2024-02-05 13:03:20 +00:00
lib spa: update lib.c 2026-03-09 18:33:32 +01:00
plugins spa: alsa: acp-device: stop 100% CPU spin when a poll fd hangs up 2026-07-05 00:04:50 +01:00
tests tests: don't redefine spa_assert 2026-05-25 11:05:35 +02:00
tools tools: port various tools to the new json-builder 2026-02-26 10:51:17 +01:00
meson.build meson: Always use -fno-strict-aliasing and -fno-strict-overflow 2025-07-24 07:30:28 +00:00