]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-json: properly export sd_json_variant_type_from_string() and _to_string()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 12 Dec 2024 01:09:52 +0000 (10:09 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 12 Dec 2024 04:08:35 +0000 (13:08 +0900)
These exist in the header file, but were not exporeted.

Continuation of e11f5aa7226253bf31b2ed61be8599bb213c1819.

src/libsystemd/libsystemd.sym
src/libsystemd/sd-json/sd-json.c

index 2c0839b8e5e6ea5a9e4581fa4b401c8d40f1c371..35f55d0cddd498a7bad8b94c585e678b9d968164 100644 (file)
@@ -1062,5 +1062,7 @@ global:
 
 LIBSYSTEMD_258 {
 global:
+        sd_json_variant_type_from_string;
+        sd_json_variant_type_to_string;
         sd_varlink_reset_fds;
 } LIBSYSTEMD_257;
index a8a5e47761c179f7242b328365bd4e284fb065f2..2f2f6e0d002a70834f65e9c951837cb05504a7da 100644 (file)
@@ -5808,4 +5808,4 @@ static const char* const sd_json_variant_type_table[_SD_JSON_VARIANT_TYPE_MAX] =
         [SD_JSON_VARIANT_NULL]     = "null",
 };
 
-DEFINE_STRING_TABLE_LOOKUP(sd_json_variant_type, sd_json_variant_type_t);
+_DEFINE_STRING_TABLE_LOOKUP(sd_json_variant_type, sd_json_variant_type_t, _public_);