gvariant-parser: Mention annotated types

g_variant_parse() supports g_variant_printf()s type annotations which
can be needed e.g. in detailed action names.

Reference: https://gitlab.gnome.org/GNOME/gtk/-/issues/6303#note_1958300
This commit is contained in:
Guido Günther 2024-01-09 14:31:41 +01:00 committed by Philip Withnall
parent f09bd17e32
commit d025a7f5b3

View File

@ -2502,7 +2502,8 @@ parse (TokenStream *stream,
* then it will be set to reflect the error that occurred.
*
* Officially, the language understood by the parser is "any string
* produced by g_variant_print()".
* produced by g_variant_print()". This explicitly includes
* `g_variant_print()`s annotated types like `int64 -1000`.
*
* There may be implementation specific restrictions on deeply nested values,
* which would result in a %G_VARIANT_PARSE_ERROR_RECURSION error. #GVariant is