Skip to content

Commit

Permalink
Exported the ddsrt_getifaddrs and ddsrt_freeifaddrs symbols which are…
Browse files Browse the repository at this point in the history
… required by the Iceoryx PSMX plugin.
  • Loading branch information
gmartin82 authored and eboasson committed May 1, 2024
1 parent 7c253ad commit 460851a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/core/xtests/symbol_export/symbol_export.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include "dds/ddsrt/strtol.h"
#include "dds/ddsrt/xmlparser.h"
#include "dds/ddsrt/io.h"
#include "dds/ddsrt/ifaddrs.h"
#if DDSRT_HAVE_FILESYSTEM
#include "dds/ddsrt/filesystem.h"
#endif
Expand Down Expand Up @@ -1069,6 +1070,10 @@ int main (int argc, char **argv)
test_ddsrt_vasprintf (ptr, " ");
ddsrt_asprintf (ptr, " ");

// ddsrt/ifaddrs.h
ddsrt_getifaddrs (ptr, ptr);
ddsrt_freeifaddrs (ptr);

// dds__write.h
dds_write_impl (ptr, ptr, 0, (dds_write_action) 0);
dds_writecdr_impl (ptr, ptr, ptr, false);
Expand Down
4 changes: 2 additions & 2 deletions src/ddsrt/include/dds/ddsrt/ifaddrs.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ typedef struct ddsrt_ifaddrs ddsrt_ifaddrs_t;
* @param[in] afs an array of address families
* @return a DDS_RETCODE (OK, ERROR, OUT_OF_RESOURCES, NOT_ALLOWED)
*/
dds_return_t
DDS_EXPORT dds_return_t
ddsrt_getifaddrs(
ddsrt_ifaddrs_t **ifap,
const int *afs);
Expand All @@ -68,7 +68,7 @@ ddsrt_getifaddrs(
*
* @param[in] ifa the interface addresses to free
*/
void
DDS_EXPORT void
ddsrt_freeifaddrs(
ddsrt_ifaddrs_t *ifa);

Expand Down

0 comments on commit 460851a

Please sign in to comment.