Set symbols visibility to public for util functions

This commit is contained in:
Ingo Lütkebohle 2019-10-18 17:07:18 +00:00 committed by Christophe Bedard
parent ad46e04ebe
commit 7dea456122
10 changed files with 19 additions and 11 deletions

View file

@ -14,7 +14,13 @@ endif()
find_package(ament_cmake_ros REQUIRED)
option(TRACETOOLS_DISABLED "Explicitly disable support for tracing with LTTng" OFF)
if(WIN32)
set(DISABLED_DEFAULT ON)
else()
set(DISABLED_DEFAULT OFF)
endif()
option(TRACETOOLS_DISABLED "Explicitly disable support for tracing with LTTng" ${DISABLED_DEFAULT})
if(NOT TRACETOOLS_DISABLED)
# Set TRACING_ENABLED if we can find lttng-ust
find_package(PkgConfig)

View file

@ -18,11 +18,13 @@
#include <stddef.h>
#include <functional>
#include "tracetools/visibility_control.hpp"
#define SYMBOL_UNKNOWN "UNKNOWN"
const char * _demangle_symbol(const char * mangled);
TRACETOOLS_PUBLIC const char * _demangle_symbol(const char * mangled);
const char * _get_symbol_funcptr(void * funcptr);
TRACETOOLS_PUBLIC const char * _get_symbol_funcptr(void * funcptr);
template<typename T, typename ... U>
const char * get_symbol(std::function<T(U...)> f)

View file

@ -5,7 +5,7 @@
<version>0.2.8</version>
<description>Tracing wrapper for ROS 2.</description>
<maintainer email="bedard.christophe@gmail.com">Christophe Bedard</maintainer>
<maintainer email="ingo.luetkebohle@de.bosch.com">Ingo Lütkebohle</maintainer>
<maintainer email="ingo.luetkebohle@de.bosch.com">Ingo Luetkebohle</maintainer>
<license>Apache 2.0</license>
<author email="ingo.luetkebohle@de.bosch.com">Ingo Lütkebohle</author>
<author email="fixed-term.christophe.bourquebedard@de.bosch.com">Christophe Bedard</author>