Skip to content

Commit

Permalink
Add rmw_use_node_name_in_security_directory_lookup function
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Santiago Paunovic <[email protected]>
  • Loading branch information
ivanpauno committed Jan 24, 2020
1 parent d08e1a6 commit 4d6172a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rmw_implementation/src/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "rmw/get_service_names_and_types.h"
#include "rmw/get_topic_names_and_types.h"
#include "rmw/rmw.h"
#include "rmw/security.h"

std::string get_env_var(const char * env_var)
{
Expand Down Expand Up @@ -534,6 +535,10 @@ RMW_INTERFACE_FN(rmw_set_log_severity,
rmw_ret_t, RMW_RET_ERROR,
1, ARG_TYPES(rmw_log_severity_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)
Expand Down Expand Up @@ -607,6 +612,7 @@ void prefetch_symbols(void)
GET_SYMBOL(rmw_compare_gids_equal)
GET_SYMBOL(rmw_service_server_is_available)
GET_SYMBOL(rmw_set_log_severity)
GET_SYMBOL(rmw_use_node_name_in_security_directory_lookup)
}

void * symbol_rmw_init = nullptr;
Expand Down

0 comments on commit 4d6172a

Please sign in to comment.