From 1c9bc19f94c6dd6c62b573fed335a0663cb84d9f Mon Sep 17 00:00:00 2001 From: Koudai Yamasaki Date: Thu, 16 Nov 2023 20:37:00 +0900 Subject: [PATCH] Export dds_writecdr_impl Signed-off-by: Koudai Yamasaki --- src/core/ddsc/src/dds__write.h | 1 + src/core/xtests/symbol_export/symbol_export.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/ddsc/src/dds__write.h b/src/core/ddsc/src/dds__write.h index 25dc1dabbc..ad0fbc6e45 100644 --- a/src/core/ddsc/src/dds__write.h +++ b/src/core/ddsc/src/dds__write.h @@ -36,6 +36,7 @@ dds_return_t dds_write_impl (dds_writer *wr, const void *data, dds_time_t timest ddsrt_attribute_warn_unused_result ddsrt_nonnull_all; /** @component write_data */ +DDS_EXPORT_INTERNAL_FUNCTION dds_return_t dds_writecdr_impl (dds_writer *wr, struct ddsi_xpack *xp, struct ddsi_serdata *d, bool flush) ddsrt_attribute_warn_unused_result ddsrt_nonnull_all; diff --git a/src/core/xtests/symbol_export/symbol_export.c b/src/core/xtests/symbol_export/symbol_export.c index ccbc766e49..bcc880f3c1 100644 --- a/src/core/xtests/symbol_export/symbol_export.c +++ b/src/core/xtests/symbol_export/symbol_export.c @@ -71,7 +71,7 @@ #include "dds/cdr/dds_cdrstream.h" -#include "dds__write.h" // dds_write_impl +#include "dds__write.h" // dds_write_impl, dds_writecdr_impl DDSRT_WARNING_DEPRECATED_OFF @@ -1058,6 +1058,7 @@ int main (int argc, char **argv) // dds__write.h dds_write_impl (ptr, ptr, 0, (dds_write_action) 0); + dds_writecdr_impl (ptr, ptr, ptr, false); return 0; }