From: Lennart Poettering Date: Tue, 18 Jun 2024 09:47:06 +0000 (+0200) Subject: sd-json: add comment clarifying that _SD_JSON_BUILD* enums are not to be used directly X-Git-Tag: v257-rc1~1095^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=357fa81375b979d16741a525cc521ffdf1ed8d97;p=thirdparty%2Fsystemd.git sd-json: add comment clarifying that _SD_JSON_BUILD* enums are not to be used directly --- diff --git a/src/systemd/sd-json.h b/src/systemd/sd-json.h index 5c6ca18951d..316f51c20b2 100644 --- a/src/systemd/sd-json.h +++ b/src/systemd/sd-json.h @@ -189,6 +189,7 @@ int sd_json_parse_file_at(FILE *f, int dir_fd, const char *path, sd_json_parse_f int sd_json_parse_file(FILE *f, const char *path, sd_json_parse_flags_t flags, sd_json_variant **ret, unsigned *reterr_line, unsigned *reterr_column); enum { + /* Do not use these directly, use the SD_JSON_BUILD_*() macros below */ _SD_JSON_BUILD_STRING, _SD_JSON_BUILD_INTEGER, _SD_JSON_BUILD_UNSIGNED,