From 9b9bdced24faf602415ee1885d9df99628f6a97a Mon Sep 17 00:00:00 2001 From: Ivan Santiago Paunovic Date: Fri, 24 Jan 2020 14:29:39 -0300 Subject: [PATCH] Add rmw_use_node_name_in_security_directory_lookup function Signed-off-by: Ivan Santiago Paunovic --- rmw_implementation/src/functions.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rmw_implementation/src/functions.cpp b/rmw_implementation/src/functions.cpp index 0caf9f67..8df4e575 100644 --- a/rmw_implementation/src/functions.cpp +++ b/rmw_implementation/src/functions.cpp @@ -32,6 +32,7 @@ #include "rmw/get_topic_endpoint_info.h" #include "rmw/get_topic_names_and_types.h" #include "rmw/rmw.h" +#include "rmw/security.h" #define STRINGIFY_(s) #s #define STRINGIFY(s) STRINGIFY_(s) @@ -483,6 +484,10 @@ RMW_INTERFACE_FN(rmw_get_subscriptions_info_by_topic, bool, rmw_topic_endpoint_info_array_t *)) +RMW_INTERFACE_FN(rmw_use_node_name_in_security_directory_lookup, + bool, true, + 0, ARG_TYPES(void)) + #define GET_SYMBOL(x) symbol_ ## x = get_symbol(#x); void prefetch_symbols(void) @@ -558,6 +563,7 @@ void prefetch_symbols(void) GET_SYMBOL(rmw_set_log_severity) GET_SYMBOL(rmw_get_publishers_info_by_topic) GET_SYMBOL(rmw_get_subscriptions_info_by_topic) + GET_SYMBOL(rmw_use_node_name_in_security_directory_lookup) } void * symbol_rmw_init = nullptr;