From 55c18e47596b6be9f19b33deb6c5cd0e798decd8 Mon Sep 17 00:00:00 2001 From: Maksym Telychko Date: Fri, 7 Jun 2019 12:38:11 +0300 Subject: [MTS-MTQ] refactoring: public symbols visibility Make exported ICellularRadio and CellularRadioFactory only --- Makefile | 2 +- include/mts/MTS_IO_CellularRadioFactory.h | 3 ++- include/mts/MTS_IO_ICellularRadio.h | 5 ++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index ddc7a7a..2fdaf04 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,7 @@ OBJS += \ CC := $(CXX) #-Werror -CXXFLAGS += -Wall -std=c++0x -fmessage-length=0 -fPIC +CXXFLAGS += -Wall -std=c++0x -fmessage-length=0 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden CPPFLAGS += -I=/usr/include/jsoncpp -Iinclude LDFLAGS += -s -shared -Wl,-soname,$(APPNAME).so.0 diff --git a/include/mts/MTS_IO_CellularRadioFactory.h b/include/mts/MTS_IO_CellularRadioFactory.h index 501f314..540ed29 100644 --- a/include/mts/MTS_IO_CellularRadioFactory.h +++ b/include/mts/MTS_IO_CellularRadioFactory.h @@ -21,6 +21,7 @@ #ifndef MTS_IO_CELLULARRADIOFACTORY_H_ #define MTS_IO_CELLULARRADIOFACTORY_H_ +#include #include #include #include @@ -32,7 +33,7 @@ namespace MTS { class GE910Radio; class DE910Radio; class CE910Radio; - class CellularRadioFactory { + class EXPORT CellularRadioFactory { public: diff --git a/include/mts/MTS_IO_ICellularRadio.h b/include/mts/MTS_IO_ICellularRadio.h index 257ed00..d954a24 100644 --- a/include/mts/MTS_IO_ICellularRadio.h +++ b/include/mts/MTS_IO_ICellularRadio.h @@ -7,12 +7,11 @@ #include -#include -#include +#define EXPORT __attribute__((visibility("default"))) namespace MTS { namespace IO { - class ICellularRadio + class EXPORT ICellularRadio { public: typedef std::function IsNeedMoreData; -- cgit v1.2.3