1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

sd-json: add comment clarifying that _SD_JSON_BUILD* enums are not to be used directly

This commit is contained in:
Lennart Poettering 2024-06-18 11:47:06 +02:00
parent 90cfb61c71
commit 357fa81375

View 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,