summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaksym Telychko <maksym.telychko@globallogic.com>2019-06-07 12:38:11 +0300
committerMaksym Telychko <maksym.telychko@globallogic.com>2019-06-07 12:38:11 +0300
commit55c18e47596b6be9f19b33deb6c5cd0e798decd8 (patch)
tree06bc41c6acd62a7f58461d1c82f5ddcd67691eaf
parent936d8d57853e1ffbe1f46874b7ba9194e26cccb9 (diff)
downloadlibmts-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--Makefile2
-rw-r--r--include/mts/MTS_IO_CellularRadioFactory.h3
-rw-r--r--include/mts/MTS_IO_ICellularRadio.h5
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 <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;