json: add json_dispatch_variant_noref() helper
authorLennart Poettering <lennart@poettering.net>
Mon, 12 Jun 2023 14:37:37 +0000 (16:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 12 Jun 2023 16:26:08 +0000 (18:26 +0200)
commit6b9f63cb3fdbc8e365aa55bef219ced91c10c103
tree2271c93c0921704ed158e8a8ee12760115f203ba
parent2efddcb24551521b75542043d033e39338207de8
json: add json_dispatch_variant_noref() helper

This is identical to json_dispatch_variant() but doesn't increase the
ref counter of the variant. This is useful for taking JSON objects apart
locally without the intention to keep any component pinned for longer
than the local stack frame.
src/shared/json.c
src/shared/json.h