From: Yu Watanabe Date: Thu, 12 Dec 2024 01:09:52 +0000 (+0900) Subject: sd-json: properly export sd_json_variant_type_from_string() and _to_string() X-Git-Tag: v258-rc1~1886^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5fcabde35b8d2592e4ba3f4915839a54d2f246ba;p=thirdparty%2Fsystemd.git sd-json: properly export sd_json_variant_type_from_string() and _to_string() These exist in the header file, but were not exporeted. Continuation of e11f5aa7226253bf31b2ed61be8599bb213c1819. --- diff --git a/src/libsystemd/libsystemd.sym b/src/libsystemd/libsystemd.sym index 2c0839b8e5e..35f55d0cddd 100644 --- a/src/libsystemd/libsystemd.sym +++ b/src/libsystemd/libsystemd.sym @@ -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; diff --git a/src/libsystemd/sd-json/sd-json.c b/src/libsystemd/sd-json/sd-json.c index a8a5e47761c..2f2f6e0d002 100644 --- a/src/libsystemd/sd-json/sd-json.c +++ b/src/libsystemd/sd-json/sd-json.c @@ -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_);