]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-json: add comment clarifying that _SD_JSON_BUILD* enums are not to be used directly
authorLennart Poettering <lennart@poettering.net>
Tue, 18 Jun 2024 09:47:06 +0000 (11:47 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 19 Jun 2024 20:42:51 +0000 (22:42 +0200)
src/systemd/sd-json.h

index 5c6ca18951da74e35301b2ca7acaa4898f07d5d0..316f51c20b201a262354f1b18c885e79766776fe 100644 (file)
@@ -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,