Backport the new json_from_string() function
JSON-GLib 1.2.0 introduced a new function called `json_from_string()`.
It is an handy function that allows us to obtain a jsonNode with just a
single operation.
This function had to be backported, and modified a little, because we
are
targeting Scout that has an older JSON-GLib version that misses both
`json_from_string()` and `json_parser_steal_root()` (that was used in
`json_from_string()`).
Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
parent
7604a0f0
No related branches found
No related tags found
Showing
- steam-runtime-tools/graphics.c 13 additions, 18 deletionssteam-runtime-tools/graphics.c
- steam-runtime-tools/json-glib-backports-internal.h 7 additions, 1 deletionsteam-runtime-tools/json-glib-backports-internal.h
- steam-runtime-tools/json-glib-backports.c 49 additions, 1 deletionsteam-runtime-tools/json-glib-backports.c
- steam-runtime-tools/library.c 4 additions, 12 deletionssteam-runtime-tools/library.c
- steam-runtime-tools/locale.c 3 additions, 9 deletionssteam-runtime-tools/locale.c
- steam-runtime-tools/xdg-portal.c 5 additions, 17 deletionssteam-runtime-tools/xdg-portal.c
- tests/meson.build 1 addition, 1 deletiontests/meson.build
- tests/system-info-cli.c 21 additions, 54 deletionstests/system-info-cli.c
Loading
Please register or sign in to comment