diff options
author | Maksym Telychko <maksym.telychko@globallogic.com> | 2019-06-07 12:38:11 +0300 |
---|---|---|
committer | Maksym Telychko <maksym.telychko@globallogic.com> | 2019-06-07 12:38:11 +0300 |
commit | 55c18e47596b6be9f19b33deb6c5cd0e798decd8 (patch) | |
tree | 06bc41c6acd62a7f58461d1c82f5ddcd67691eaf | |
parent | 936d8d57853e1ffbe1f46874b7ba9194e26cccb9 (diff) | |
download | libmts-io-55c18e47596b6be9f19b33deb6c5cd0e798decd8.tar.gz libmts-io-55c18e47596b6be9f19b33deb6c5cd0e798decd8.tar.bz2 libmts-io-55c18e47596b6be9f19b33deb6c5cd0e798decd8.zip |
[MTS-MTQ] refactoring: public symbols visibility
Make exported ICellularRadio and CellularRadioFactory only
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | include/mts/MTS_IO_CellularRadioFactory.h | 3 | ||||
-rw-r--r-- | include/mts/MTS_IO_ICellularRadio.h | 5 |
3 files changed, 5 insertions, 5 deletions
@@ -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 <mts/MTS_IO_CellularRadio.h> #include <mts/MTS_IO_TelitRadio.h> #include <string> #include <map> @@ -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 <json/json.h> -#include <mts/MTS_AutoPtr.h> -#include <mts/MTS_IO_Connection.h> +#define EXPORT __attribute__((visibility("default"))) namespace MTS { namespace IO { - class ICellularRadio + class EXPORT ICellularRadio { public: typedef std::function<bool(const std::string&/*iterationData*/, const std::string&/*allData*/)> IsNeedMoreData; |