sd-json.h: reword SD_JSON_WARNING/SD_JSON_DEBUG comments
authorLennart Poettering <lennart@poettering.net>
Tue, 18 Jun 2024 09:43:58 +0000 (11:43 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 19 Jun 2024 20:42:51 +0000 (22:42 +0200)
commit90cfb61c71dd3b26f9c6e8113bd25c4a3fee400d
treed6f8bbb27b9694eccda76d5b1ba72eac755f67c0
parentde732ade0909c2d44a214fb1eaea5f5b1721e9f1
sd-json.h: reword SD_JSON_WARNING/SD_JSON_DEBUG comments

Even though we don't export json_log() in the public API, let's
officially make the SD_JSON_WARNING/SD_JSON_DEBUG that control its
effect in the public API.

After all, for our own dispatcher functions they have a nice effect, and
they are trivially reimplemented in user code independently.

(We might eventually consider exporting json_log() as public API, but
this is quite involved, given its use of macros/inline functions and
iternal logging API).

This mostly just swaps around the bit flags and cleans up comments.
src/systemd/sd-json.h