From 357fa81375b979d16741a525cc521ffdf1ed8d97 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 18 Jun 2024 11:47:06 +0200 Subject: [PATCH] sd-json: add comment clarifying that _SD_JSON_BUILD* enums are not to be used directly --- src/systemd/sd-json.h | 1 + 1 file changed, 1 insertion(+) 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, -- 2.47.3