Sebastian Wick 3f71e403ed gvariant: Introduce G_VARIANT_BUILDER_INIT_UNSET
For g_auto(GVariantBuilder) one needs to initialize it before the
function returns, so it's best to do it when the variable is declared.
G_VARIANT_BUILDER_INIT exists but requires specifying a GVariantType in
the declaration which moves the type away from the usage of the builder
which often results in less readable code. G_VARIANT_BUILDER_INIT also
mentions that it's possible to explicitly zero the variable but this is
hard to find and writing `g_auto(GVariantBuilder) builder = {0,};` is
kind of ugly.

This introduces G_VARIANT_BUILDER_INIT_UNSET which zero initializes the
variable being declared. This gives us documentation and hides the
explicitly zeroing detail:

  auto(GVariantBuilder) builder = G_VARIANT_BUILDER_INIT_UNSET ();
2024-11-04 16:43:42 +01:00
..
2023-11-28 13:52:05 +00:00
2024-10-09 11:26:20 +02:00
2024-10-18 12:04:12 +00:00
2023-11-02 16:30:23 +00:00
2023-11-02 16:30:23 +00:00
2024-10-09 11:26:20 +02:00
2022-05-23 09:19:45 -04:00
2023-10-11 17:38:31 +01:00
2024-09-06 10:49:31 -04:00
2024-09-18 01:48:36 +01:00
2023-11-15 11:09:39 +00:00
2023-11-15 11:09:39 +00:00
2024-04-01 11:01:06 +00:00
2023-10-23 10:25:31 +01:00
2023-02-09 13:36:51 +00:00
2018-01-04 22:19:30 +01:00
2024-04-01 11:01:06 +00:00
2022-07-25 22:30:22 +01:00
2021-09-21 09:41:29 +00:00
2021-11-18 14:32:09 +00:00
2023-10-11 17:38:31 +01:00
2023-10-11 17:38:31 +01:00
2024-10-09 11:26:20 +02:00
2024-07-09 20:16:20 +01:00
2023-11-28 13:52:05 +00:00
2023-10-11 17:38:31 +01:00
2023-11-28 13:52:05 +00:00
2023-10-23 10:25:31 +01:00
2024-01-17 08:57:12 -05:00
2023-10-23 10:25:31 +01:00
2023-10-11 17:38:31 +01:00
2024-10-09 11:26:20 +02:00
2023-11-28 13:52:05 +00:00
2024-10-21 19:31:56 +01:00
2023-11-28 13:52:05 +00:00
2023-11-28 13:52:05 +00:00
2024-10-09 11:26:20 +02:00
2024-04-01 11:01:06 +00:00
2024-10-09 11:26:20 +02:00