]> git.ipfire.org Git - thirdparty/systemd.git/commit
json: make it easy to dispatch our enums 33425/head
authorLennart Poettering <lennart@poettering.net>
Thu, 20 Jun 2024 07:39:51 +0000 (09:39 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 20 Jun 2024 16:25:11 +0000 (18:25 +0200)
commit45840c2297d72a0f9e94eb3d2754b5e54c9cc0d9
tree1045e83585f213fdb17f510f02a5137a12c8f07e
parenta556a71e9c26e0ba65c634b494b312e5584adf5e
json: make it easy to dispatch our enums

This does the opposite of the previous patch: it undoes the "-" → "_"
mapping of enum values when we try to parse enums again.
src/libsystemd/sd-json/json-util.h
src/test/test-json.c